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.

28 lines
654B

  1. <?php
  2. namespace Lc\SovBundle\Model\Setting;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\SovBundle\Doctrine\EntityInterface;
  5. use Lc\SovBundle\Model\Site\SiteInterface;
  6. abstract class SiteSettingModel extends SettingModel implements SiteSettingInterface, EntityInterface
  7. {
  8. /**
  9. * @ORM\ManyToOne(targetEntity="Lc\SovBundle\Model\Site\SiteInterface", inversedBy="settings")
  10. * @ORM\JoinColumn(nullable=false)
  11. */
  12. protected $site;
  13. public function getSite(): ?SiteInterface
  14. {
  15. return $this->site;
  16. }
  17. public function setSite(?SiteInterface $site): self
  18. {
  19. $this->site = $site;
  20. return $this;
  21. }
  22. }