/** * {@inheritdoc} */ public function import(FixtureEvent $event) { $fixture = $event->getFixture(); if (!$fixture instanceof EntityManagerFixture) { return; } $fixture->setEntityManager($this->manager); }
public function purge(FixtureEvent $event) { $fixture = $event->getFixture(); if (false === $fixture instanceof ElasticaFixture) { return; } $fixture->setIndexResetter($this->resetter); }
/** * {@inheritdoc} */ public function import(FixtureEvent $event) { $fixture = $event->getFixture(); if (!$fixture instanceof AliceFixture) { return; } $fixture->setAliceFixtures($this->fixtures); $fixture->setAlice($this->alice); }