Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

48 lines
988B

  1. <?php
  2. namespace App\Entity;
  3. use Lc\PietroBundle\Repository\ProjectBoost\ProjectBoostRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Lc\PietroBundle\Model\ProjectBoost\ProjectBoost as PietroProjectBoost;
  6. /**
  7. * @ORM\Entity(repositoryClass=ProjectBoostRepository::class)
  8. */
  9. class ProjectBoost extends PietroProjectBoost
  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="projectBoost")
  19. */
  20. private $collectifData;
  21. public function __toString()
  22. {
  23. return "Les actions à booster";
  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. }