symfony - Symfony2 : doctrine orm ignore if I change table name -


i made new entity called comment using command : php app/console doctrine:generate:entity

i changed name in comment.php file :

/**  * comment  *  * @orm\table(name="blog_comment")  * @orm\entity(repositoryclass="mysite\blogbundle\entity\commentrepository")  */ class comment {  /** * @orm\manytoone(targetentity="mysite\blogbundle\entity\article") * @orm\joincolumn(nullable=false) */ private $article; 

when try command php app/console doctrine:schema:update --dump-sql, returns me "create table comment ...". ignores changes ?

i cleared cache , tried again, nothing changes... idea ?

if used app/console cache:clear recommend trying rm -rf app/cache/* instead , see if fixes issue. run problem , works.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -