I want to add an item like this just to the src/Acme/AdminBundle/Entity/Artist.orm.yml:
email:
type: string
column: email_address
length: 150
but I'm forced to do the same in the file Acme/AdminBundle/Entity/Artist
/**
* @var string $email
*/
private $email;
If I don't do it, when I update the schema it shows an error:
php app/console doctrine:schema:update --force
[Doctrine\ORM\Mapping\MappingException]
An error occurred in Acme\AdminBundle\Entity\Artist
[ReflectionException]
Property email does not exist
I generated the Bundle with the yml option at the beginning.