Symfony 生成实体的步骤
我需要帮助来生成实体,因为当我尝试下面的方法时,我会出错 创建数据库:Symfony 生成实体的步骤,symfony,Symfony,我需要帮助来生成实体,因为当我尝试下面的方法时,我会出错 创建数据库: php app/console doctrine:database:create 生成实体: php app/console doctrine:generate:entity 生成getter和setter: php app/console doctrine:generate:entities AiQABlogBundle/Entity/Profile 上述步骤给出了此错误: [运行时异常] 命名空间“AiQABlog
php app/console doctrine:database:create
生成实体:
php app/console doctrine:generate:entity
生成getter
和setter
:
php app/console doctrine:generate:entities AiQABlogBundle/Entity/Profile
上述步骤给出了此错误:
[运行时异常]
命名空间“AiQABlogBundle\Entity\Profile”不包含任何映射的实体
在这篇文章中你会发现
或者您应该输入此命令
php app/console doctrine:generate:entities AiQABlogBundle:Profile