Lo que me estas mostrando es una clase pero no es un Entity, debería ser algo así:
Código PHP:
Ver originalnamespace GOU\Entity;
/**
*
* @Entity
* @Table(name="ladders")
*
*/
class Ladder
{
/**
* @Id @Column(type="integer") @GeneratedValue
* @var integer $id
*/
private $id;
/**
* @Column(length="50", unique="true", nullable="false")
* @var string $name
*/
private $name;
/**
* @Column(type="text")
* @var text $description
*/
private $description;
/**
* @Column(name="started_at", type="datetime")
* @var DateTime $startAt
*/
private $startAt;
/**
* @ManyToMany(targetEntity="GOU\Entity\Clan", inversedBy="ladders")
* @var Doctrine\Common\Collections\ArrayCollection
*/
private $teams;
/**
* Ladder constructor
*/
public function __construct()
{
$this->teams = new Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get Id
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Setter name
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* Getter name
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Setter description
* @param text $desc
*/
public function setDescription($desc)
{
$this->description = $desc;
}
/**
* Getter description
* @return text
*/
public function getDescription()
{
return $this->description;
}
/**
* Setter startAt
* @param DateTime $startAt
*/
public function setStartAt(DateTime $time)
{
$this->startAt = $time;
}
/**
* Getter startAt
* @return Datetime
*/
public function getStartAt()
{
return $this->startAt;
}
/**
* Get ladders
* @return Doctrine\Common\Collections\ArrayCollection
*/
public function getLadders()
{
return $this->modes;
}
/**
* Add team
* @param \GOU\Entity\Clan $team
*/
public function addTeam(\GOU\Entity\Clan $team)
{
$this->teams[] = $team;
}
/**
* @return Doctrine\Common\Collections\ArrayCollection;
*/
public function getTeams()
{
return $this->teams;
}
}
Te sugiero que empieces por leer la documentación
http://www.doctrine-project.org/docs...roduction.html.
Saludos.