vendor/roothirsch/core-bundle/Entity/Company/CompanyAttribute.php line 16

Open in your IDE?
  1. <?php
  2. namespace Roothirsch\CoreBundle\Entity\Company;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Roothirsch\CoreBundle\Behaviors\Attributable\AttributeOption\AttributeOptionAwareTrait;
  7. use Roothirsch\CoreBundle\Behaviors\Attributable\AttributeValue\AttributeValueAwareTrait;
  8. use Roothirsch\CoreBundle\Behaviors\Attributable\MappedSuperclass\AbstractAttribute;
  9. /**
  10. * @ORM\Entity
  11. */
  12. class CompanyAttribute extends AbstractAttribute
  13. {
  14. use AttributeOptionAwareTrait;
  15. use AttributeValueAwareTrait;
  16. /**
  17. * @ORM\OneToMany(targetEntity=CompanyAttributeValue::class, mappedBy="attribute", orphanRemoval=true)
  18. */
  19. private $attributeValues;
  20. /**
  21. * @ORM\OneToMany(targetEntity=CompanyAttributeOption::class, mappedBy="attribute", orphanRemoval=true, cascade={"persist"})
  22. */
  23. private $attributeOptions;
  24. }