Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

ProductFamilySectionPropertyModel.php 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Product;
  3. use App\Entity\Product\ProductFamily;
  4. use App\Entity\Section\Section;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Lc\SovBundle\Doctrine\EntityInterface;
  7. use Lc\SovBundle\Doctrine\Extension\StatusInterface;
  8. use Lc\SovBundle\Doctrine\Extension\StatusTrait;
  9. /**
  10. * @ORM\MappedSuperclass()
  11. */
  12. abstract class ProductFamilySectionPropertyModel implements EntityInterface, ProductFamilySectionPropertyInterface, StatusInterface
  13. {
  14. use StatusTrait;
  15. /**
  16. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface", inversedBy="productFamilySectionProperties")
  17. * @ORM\JoinColumn(nullable=false)
  18. */
  19. protected $section;
  20. /**
  21. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Product\ProductFamilyInterface", inversedBy="productFamilySectionProperties")
  22. * @ORM\JoinColumn(nullable=false)
  23. */
  24. protected $productFamily;
  25. public function getSection(): ?Section
  26. {
  27. return $this->section;
  28. }
  29. public function setSection(?Section $section): self
  30. {
  31. $this->section = $section;
  32. return $this;
  33. }
  34. public function getProductFamily(): ?ProductFamily
  35. {
  36. return $this->productFamily;
  37. }
  38. public function setProductFamily(?ProductFamily $productFamily): self
  39. {
  40. $this->productFamily = $productFamily;
  41. return $this;
  42. }
  43. }