我在Aib\PlatformBundle\Entity\User.php中有一个实体类。
通过以下命令创建表单类没有问题:
php app/console doctrine:generate:form AibPlatformBundle:User
现在我已将命名空间更改为Aib\PlatformBundle\Entity\Identity\User,但是当我尝试使用上述命令生成表单时, 它会显示以下错误信息:
"Class Aib\PlatformBundle\Entity\User is not a valid entity or mapped super class."
这是文件内容:
<?php
namespace Aib\PlatformBundle\Entity\Identity;
use Doctrine\ORM\Mapping as ORM;
/**
* Aib\PlatformBundle\Entity\Identity\User
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="Aib\PlatformBundle\Entity\Identity
\UserRepository")
*/
class User
{
...
任何想法? symfony2.0.4