i'm using symphony with doctrine , i generated an entity and I'm trying to generate tables in data base with the console with the command
php app/console doctrine:schema:update --dump-sql
i receive this error :
[Doctrine\Common\Annotations\AnnotationException]
[Semantical Error] The annotation "@ORM\Table" in class bouda\platformBundle\Entity\Advert was never imported. Did you maybe forget to add a "use" statement for this annotation?
i tried to add use Doctrine\ORM\Mapping as ORM; in the Entity file but when i save the file le line is deleted automatically .
By the way i'm using sublime text and MAMP in os x