Open bassrock opened 10 years ago
I ran into the same issue with running a unit test and loading Doctrine fixtures. I created a little hack to disable foreign key checks with mysql
$this->em = $this->getContainer()->get('doctrine.orm.entity_manager');
$stmt = $this->em->getConnection()->prepare("SET FOREIGN_KEY_CHECKS=0");
$stmt->execute();
So I am using doctrine fixtures to pre-load my database with data and it seems that doctrine fixtures has trouble clearing the jms_jobs tables when there are relations.
Is it possible that it is the way the relations are setup in the JMS Bundle?