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.

PageModel.php 793B

12345678910111213141516171819202122232425262728293031323334
  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\Section\SectionInterface;
  6. use Lc\SovBundle\Model\Site\PageModel as SovPageModel;
  7. /**
  8. * @ORM\MappedSuperclass()
  9. */
  10. abstract class PageModel extends SovPageModel implements FilterSectionInterface
  11. {
  12. /**
  13. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface", inversedBy="pages")
  14. * @ORM\JoinColumn(nullable=false)
  15. */
  16. protected $section;
  17. public function getSection(): SectionInterface
  18. {
  19. return $this->section;
  20. }
  21. public function setSection(SectionInterface $section): self
  22. {
  23. $this->section = $section;
  24. return $this;
  25. }
  26. }