You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
707B

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Setting;
  3. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Lc\SovBundle\Doctrine\EntityInterface;
  6. class SectionSettingModel implements SettingInterface, EntityInterface
  7. {
  8. use SettingTrait;
  9. /**
  10. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface", inversedBy="sectionSettings")
  11. * @ORM\JoinColumn(nullable=false)
  12. */
  13. protected $section;
  14. public function getSection(): ?SectionInterface
  15. {
  16. return $this->section;
  17. }
  18. public function setSection(?SectionInterface $section): self
  19. {
  20. $this->section = $section;
  21. return $this;
  22. }
  23. }