Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

60 lines
1.4KB

  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. }