Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Symfony2 和 Doctrine 开发应用程序,当 我尝试使用 为角色和用户实体创建表时出现问题php app/console doctrine:schema:update --force,关系是 ManyToMany,虽然映射信息、注释似乎是正确的,但它会引发以下异常:
php app/console doctrine:schema:update --force
[Doctrine\DBAL\DBALException] 请求的未知列类型角色
我能做些什么?非常感谢。
您可能有这样的注释:
/** * @Column(type="role") */ protected $role;
这是一个问题,因为 Doctrine 不知道任何名为role.
role
我不得不说这是一个假设,因为你没有发布任何代码......