No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

48 líneas
925B

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