Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

32 lines
795B

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Newsletter;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\CaracoleBundle\Doctrine\Extension\FilterSectionInterface;
  5. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  6. use Lc\SovBundle\Model\Newsletter\NewsletterModel as SovNewsletterModel;
  7. /**
  8. * @ORM\MappedSuperclass()
  9. */
  10. abstract class NewsletterModel extends SovNewsletterModel implements FilterSectionInterface
  11. {
  12. /**
  13. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface", inversedBy="newsletters")
  14. */
  15. protected $section;
  16. public function getSection(): SectionInterface
  17. {
  18. return $this->section;
  19. }
  20. public function setSection(?SectionInterface $section): self
  21. {
  22. $this->section = $section;
  23. return $this;
  24. }
  25. }