Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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