コマンドを使用して Comment という新しいエンティティを作成しました: php app/console doctrine:generate:entity
Comment.php ファイルで名前を次のように変更しました。
/**
* 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;
コマンドphp app/console doctrine:schema:update --dump-sqlを試すと、 「CREATE TABLE Comment ...」が返されます。それで、私の変更は無視されますか?
キャッシュをクリアして再試行しましたが、何も変わりません...何か考えはありますか?