I try to add a cahmps in entity. I have this code:
/**
* @var integer $colorevent
* @ORM\Column(name="colorevent", type="integer")
*/
private $colorevent;
/**
* Get colorevent
* @return integer
*/
public function getColorevent()
{
return $this->colorevent;
}
/**
* Set colorevent
* @return integer
*/
public function setColorevent($colorevent)
{
return $this->colorevent = $colorevent ;
}
I run these commands:
php app/console doctrine:schema:update
php app/console doctrine:schema:update --dump-sql
php app/console doctrine:schema:update --force
which renders this message:
Nothing to update yopur database is already in sync with the current entity metadata
How do I add a field in entity?