Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

SectionSettingModel.php 781B

3 år sedan
1234567891011121314151617181920212223242526272829
  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. }