class SomeclassFixtures extends Fixture implements FixtureGroupInterface {
public function load(ObjectManager $manager)
{
}
}
No php or mysql error messages found. $row->getId() returns null before manager->flush() and int value after flushing as expected. But i can not found record with Mysql Workbench.
How can it happend.
Problem found. With Doctrine\ORM\EntityManager everything works fine, with Doctrine\Common\Persistence\ObjectManager - not. Some times the last one works as expected, but i do not understend why.
The same code works fine outside the FixturesBundle and does't work inside it. For example:
This code with simple entity works with entity manager created this way:
But doesn't work inside this:
No php or mysql error messages found. $row->getId() returns null before manager->flush() and int value after flushing as expected. But i can not found record with Mysql Workbench. How can it happend.