Elcodi\Admin\CurrencyBundle\DataFixtures\ORM\Currency\CurrencyEuroData::load PHP Метод

load() публичный Метод

Load data fixtures with the passed EntityManager
public load ( Doctrine\Common\Persistence\ObjectManager $manager )
$manager Doctrine\Common\Persistence\ObjectManager
    public function load(ObjectManager $manager)
    {
        /**
         * @var array           $currencies
         * @var ObjectDirector   $currencyDirector
         */
        $currencyDirector = $this->getDirector('currency');
        $currency = $currencyDirector->create()->setIso('EUR')->setName('Euro')->setSymbol('€')->setEnabled(true);
        $currencyDirector->save($currency);
    }
CurrencyEuroData