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