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.

45 lines
889B

  1. <?php
  2. namespace App\Entity\Dream;
  3. use App\Entity\CollectifData\CollectifData;
  4. use Lc\PietroBundle\Repository\Dream\DreamRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Lc\PietroBundle\Model\Dream\Dream as PietroDream;
  7. /**
  8. * @ORM\Entity(repositoryClass=DreamRepository::class)
  9. */
  10. class Dream extends PietroDream
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\ManyToOne(targetEntity=CollectifData::class, inversedBy="dream")
  20. */
  21. private $collectifData;
  22. public function getId(): ?int
  23. {
  24. return $this->id;
  25. }
  26. public function getCollectifData(): ?CollectifData
  27. {
  28. return $this->collectifData;
  29. }
  30. public function setCollectifData(?CollectifData $collectifData): self
  31. {
  32. $this->collectifData = $collectifData;
  33. return $this;
  34. }
  35. }