2

When i try to create my fixtures i'm 100% sure that they are correct but they are giving me errors when trying to load them about the table names.

[Doctrine\DBAL\DBALException]                                                
An exception occurred while executing 'DELETE FROM group':      

Which of course can't be loaded because it is missing the apostrophes (`)

anybody got an idea why this is happening?

4

1 に答える 1

6

You need the Table annotation with the escaped table name on the Group entity:

use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Table;

/**
 * @Entity
 * @Table("`group`")
 */
class Group {
}
于 2013-02-24T20:11:40.770 に答える