|
- <?php
-
- namespace Lc\CaracoleBundle\Model\Site;
-
- use Doctrine\ORM\Mapping as ORM;
- use Lc\CaracoleBundle\Doctrine\Extension\FilterMerchantInterface;
- use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
- use Lc\SovBundle\Model\Site\NewsModel as SovNewsModel;
-
- /**
- * @ORM\MappedSuperclass()
- */
- abstract class NewsModel extends SovNewsModel implements FilterMerchantInterface
- {
- /**
- * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Merchant\MerchantInterface", inversedBy="news")
- * @ORM\JoinColumn(nullable=false)
- */
- protected $merchant;
-
- public function getMerchant(): ?MerchantInterface
- {
- return $this->merchant;
- }
-
- public function setMerchant(?MerchantInterface $merchant): self
- {
- $this->merchant = $merchant;
-
- return $this;
- }
- }
|