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.

26 lines
638B

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