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

SiteSettingModel.php 638B

1234567891011121314151617181920212223242526
  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. #[ORM\ManyToOne(targetEntity:"Lc\SovBundle\Model\Site\SiteInterface", inversedBy: "settings")]
  9. #[ORM\JoinColumn(nullable: false)]
  10. protected $site;
  11. public function getSite(): ?SiteInterface
  12. {
  13. return $this->site;
  14. }
  15. public function setSite(?SiteInterface $site): self
  16. {
  17. $this->site = $site;
  18. return $this;
  19. }
  20. }