symfony/DoctrineFixturesBundle — Issue #18: load task not using Entity table name
Author: Sgoettschkes
Created: 2011-10-31 15:38:11+00:00
State: open

I got a entity named "order" within my application and cannot use doctrine:fixtures:load as it tries to DELETE FROM order which breaks MySQL. I got the following annotation within the entity, but it doesn't change anything:
@ORM\Table(name="`Order`")

As a quickfix, I added line 119 in Doctrine\Common\DataFixtures\Purger\ORMPurger:
$tbl = '`' . $tbl . '`';

It works for me now, but I guess that's not a clean solution.