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
Post a Comment