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.

29 lines
781B

  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. use Lc\SovBundle\Model\Setting\SettingModel as SovSettingModel;
  7. abstract class SectionSettingModel extends SovSettingModel implements EntityInterface, SectionSettingInterface
  8. {
  9. /**
  10. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface", inversedBy="settings")
  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. }