您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SiteSettingModel.php 654B

12345678910111213141516171819202122232425262728
  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. }