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.

49 line
1.0KB

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