src/Entity/SettingsTeam.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * SettingsTeam
  6. */
  7. #[ORM\Entity(repositoryClass: \App\Repository\SettingsTeamRepository::class)]
  8. #[ORM\Table(name: 'settings_team')]
  9. class SettingsTeam
  10. {
  11. /**
  12. * @var int
  13. */
  14. #[ORM\Column(name: 'id', type: 'integer')]
  15. #[ORM\Id]
  16. #[ORM\GeneratedValue(strategy: 'AUTO')]
  17. private $id;
  18. /**
  19. * @var string
  20. */
  21. #[ORM\Column(name: 'team', type: 'string', length: 255)]
  22. private $team;
  23. /**
  24. * Get id
  25. *
  26. * @return int
  27. */
  28. public function getId()
  29. {
  30. return $this->id;
  31. }
  32. /**
  33. * Get team
  34. *
  35. * @return string
  36. */
  37. public function getTeam()
  38. {
  39. return $this->team;
  40. }
  41. /**
  42. * Set team
  43. *
  44. * @param string $team
  45. *
  46. * @return SettingsTeam
  47. */
  48. public function setTeam($team)
  49. {
  50. $this->team = $team;
  51. return $this;
  52. }
  53. // src/Entity/SettingsTeam.php
  54. public function __toString()
  55. {
  56. return $this->getTeam(); // O el nombre del campo que guarda el nombre del equipo
  57. }
  58. }