2015-04-28 125 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