vendor/roothirsch/pim-bundle/Entity/AttributeOption.php line 18

Open in your IDE?
  1. <?php
  2. namespace Roothirsch\PimBundle\Entity;
  3. use Roothirsch\CoreBundle\Behaviors\Attributable\Attribute\AttributeAwareTrait;
  4. use Roothirsch\CoreBundle\Behaviors\Attributable\MappedSuperclass\AbstractAttributeOption;
  5. use Roothirsch\PimBundle\Repository\AttributeOptionRepository;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. use Doctrine\Common\Collections\Collection;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use \Roothirsch\PimBundle\Entity\Attribute;
  10. use \Roothirsch\PimBundle\Entity\AttributeValue;
  11. /**
  12. * @ORM\Entity(repositoryClass=AttributeOptionRepository::class)
  13. * @ORM\Table(name="pim_attribute_option")
  14. */
  15. class AttributeOption extends AbstractAttributeOption
  16. {
  17. use AttributeAwareTrait;
  18. /**
  19. * @ORM\ManyToOne(targetEntity=Attribute::class, inversedBy="attributeOptions")
  20. * @ORM\JoinColumn(nullable=false)
  21. */
  22. private $attribute;
  23. }