2015-04-28 100 views
1

我需要帮助来生成实体,因为当我尝试下面的实体时,我收到错误。生成实体的步骤

创建DATABSE:

php app/console doctrine:database:create 

生成实体:

php app/console doctrine:generate:entity 

生成GettersSetters

php app/console doctrine:generate:entities AiQABlogBundle/Entity/Profile 

上述步骤给出了这样的错误:

[RuntimeException] Namespace "AiQABlogBundle\Entity\Profile" does not contain any mapped entities.

回答

1

在这篇文章中你会发现answer

或者您应该输入此命令

php app/console doctrine:generate:entities AiQABlogBundle:Profile