1

I am developing an application using Symfony2 and Doctrine, the problem comes when
I try to create tables for Role and User Entities using php app/console doctrine:schema:update --force, the relation is ManyToMany and although the mapping information, the annotations, seem to be correct it throws the following exception:

[Doctrine\DBAL\DBALException] Unknown column type role requested

What can I do? Thank you very much.

greg0ire
  • 22,714
  • 16
  • 72
  • 101
Haritz
  • 1,702
  • 7
  • 31
  • 50
  • There is a `--verbose` option to the symfony2 CLI. Does it display more information? And of course, you should post annotations. – greg0ire Feb 18 '12 at 15:02

1 Answers1

1

You probably have a annotation like this:

/**
 * @Column(type="role")
 */
 protected $role;

This is a problem, because Doctrine doesn't know of any type named role.

I have to say that this is an assumption because you haven't posted any code...

Ramon Kleiss
  • 1,684
  • 15
  • 25