public function load(ObjectManager $manager, FixtureInterface $fixture)
    {
        if ($this->logger) {
            $prefix = '';
            if ($fixture instanceof OrderedFixtureInterface) {
                $prefix = sprintf('[%d] ',$fixture->getOrder());
            }
            $this->log('loading ' . $prefix . get_class($fixture));
        }
        // additionally pass the instance of reference repository to shared fixtures
        if ($fixture instanceof SharedFixtureInterface) {
            $fixture->setReferenceRepository($this->referenceRepository);
        }
        $fixture->load($manager);
        $manager->clear();
    }
public function load(ObjectManager $manager, FixtureInterface $fixture)
    {
        if ($this->logger) {
            $prefix = '';
            if ($fixture instanceof OrderedFixtureInterface) {
                $prefix = sprintf('[%d] ',$fixture->getOrder());
            }
            $this->log('loading ' . $prefix . get_class($fixture));
        }
        // additionally pass the instance of reference repository to shared fixtures
        if ($fixture instanceof SharedFixtureInterface) {
            $fixture->setReferenceRepository($this->referenceRepository);
        }
        $fixture->load($manager);
        $manager->clear();
    }
public function load ( ObjectManager $ manager , FixtureInterface $ fixture ) { if ( $ this -> logger ) { $ prefix = '' ; if ( $ fixture instanceof OrderedFixtureInterface ) { $ prefix = sprintf ( '[%d] ' , $ fixture -> getOrder ( ) ) ; } $ this -> log ( 'loading ' . $ prefix . get_class ( $ fixture ) ) ; } // additionally pass the instance of reference repository to shared fixtures if ( $ fixture instanceof SharedFixtureInterface ) { $ fixture -> setReferenceRepository ( $ this -> referenceRepository ) ; } $ fixture -> load ( $ manager ) ; $ manager -> clear ( ) ; }
Load a fixture with the given persistence manager.

@param ObjectManager    $manager
@param FixtureInterface $fixture
Load a fixture with the given persistence manager .