Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

52 lines
1.2KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Site;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\CaracoleBundle\Doctrine\Extension\FilterSectionInterface;
  5. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  6. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  7. use Lc\SovBundle\Model\Site\PageModel as SovPageModel;
  8. /**
  9. * @ORM\MappedSuperclass()
  10. */
  11. abstract class PageModel extends SovPageModel implements FilterSectionInterface
  12. {
  13. /**
  14. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Merchant\MerchantInterface")
  15. * @ORM\JoinColumn(nullable=false)
  16. */
  17. protected $merchant;
  18. /**
  19. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface", inversedBy="pages")
  20. * @ORM\JoinColumn(nullable=true)
  21. */
  22. protected $section;
  23. public function getMerchant(): ?MerchantInterface
  24. {
  25. return $this->merchant;
  26. }
  27. public function setMerchant(?MerchantInterface $merchant): self
  28. {
  29. $this->merchant = $merchant;
  30. return $this;
  31. }
  32. public function getSection(): SectionInterface
  33. {
  34. return $this->section;
  35. }
  36. public function setSection(SectionInterface $section): self
  37. {
  38. $this->section = $section;
  39. return $this;
  40. }
  41. }