<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* SettingsTeam
*/
#[ORM\Entity(repositoryClass: \App\Repository\SettingsTeamRepository::class)]
#[ORM\Table(name: 'settings_team')]
class SettingsTeam
{
/**
* @var int
*/
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private $id;
/**
* @var string
*/
#[ORM\Column(name: 'team', type: 'string', length: 255)]
private $team;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Get team
*
* @return string
*/
public function getTeam()
{
return $this->team;
}
/**
* Set team
*
* @param string $team
*
* @return SettingsTeam
*/
public function setTeam($team)
{
$this->team = $team;
return $this;
}
// src/Entity/SettingsTeam.php
public function __toString()
{
return $this->getTeam(); // O el nombre del campo que guarda el nombre del equipo
}
}