public function loadFixtures($fixtures = null) { if ($fixtures === null) { $fixtures = $this->getFixtures(); } /* @var $fixture Fixture */ foreach ($fixtures as $fixture) { $fixture->beforeLoad(); } foreach ($fixtures as $fixture) { $fixture->load(); } foreach (array_reverse($fixtures) as $fixture) { $fixture->afterLoad(); } }