Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

49 lines
976B

  1. <?php
  2. namespace App\Entity\Revolt;
  3. use App\Entity\CollectifData\CollectifData;
  4. use Lc\PietroBundle\Repository\Revolt\RevoltRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Lc\PietroBundle\Model\Revolt\Revolt as PietroRevolt;
  7. /**
  8. * @ORM\Entity(repositoryClass=RevoltRepository::class)
  9. */
  10. class Revolt extends PietroRevolt
  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="revolt")
  20. */
  21. private $collectifData;
  22. public function __toString()
  23. {
  24. return "Nos révoltes";
  25. }
  26. public function getId(): ?int
  27. {
  28. return $this->id;
  29. }
  30. public function getCollectifData(): ?CollectifData
  31. {
  32. return $this->collectifData;
  33. }
  34. public function setCollectifData(?CollectifData $collectifData): self
  35. {
  36. $this->collectifData = $collectifData;
  37. return $this;
  38. }
  39. }