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.

Subthematic.php 1.0KB

hace 3 años
hace 3 años
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace Lc\PietroBundle\Model\Subthematic;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\PietroBundle\Model\Thematic\ThematicInterface;
  5. use Lc\SovBundle\Doctrine\EntityInterface;
  6. /**
  7. * @ORM\MappedSuperclass()
  8. */
  9. abstract class Subthematic implements SubthematicInterface, EntityInterface
  10. {
  11. /**
  12. * @ORM\Column(type="string", length=255)
  13. */
  14. protected $name;
  15. /**
  16. * @ORM\ManyToOne(targetEntity="Lc\PietroBundle\Model\Thematic\ThematicInterface", inversedBy="subthematic")
  17. */
  18. protected $thematic;
  19. public function __toString()
  20. {
  21. return $this->name;
  22. }
  23. public function getName(): ?string
  24. {
  25. return $this->name;
  26. }
  27. public function setName(string $name): self
  28. {
  29. $this->name = $name;
  30. return $this;
  31. }
  32. public function getThematic(): ?ThematicInterface
  33. {
  34. return $this->thematic;
  35. }
  36. public function setThematic(?ThematicInterface $thematic): self
  37. {
  38. $this->thematic = $thematic;
  39. return $this;
  40. }
  41. }