public function load(ObjectManager $objectManager)
    {
        /**
         * @var ObjectDirector $zoneDirector
         */
        $zoneDirector = $this->getDirector('zone');

        $zone08021 = $zoneDirector
            ->create()
            ->setName('Postalcode 08021')
            ->setCode('zone-08021')
            ->addLocation($this->getReference('location-sant-celoni'))
            ->addLocation($this->getReference('location-08021'));

        $this->setReference('zone-08021', $zone08021);
        $zoneDirector->save($zone08021);

        $zoneViladecavalls = $zoneDirector
            ->create()
            ->setName('Viladecavalls i alrededores')
            ->setCode('zone-viladecavalls')
            ->addLocation($this->getReference('location-viladecavalls'));

        $this->setReference('zone-viladecavalls', $zoneViladecavalls);
        $zoneDirector->save($zoneViladecavalls);
    }
public function load(ObjectManager $objectManager)
    {
        /**
         * @var ObjectDirector $zoneDirector
         */
        $zoneDirector = $this->getDirector('zone');

        $zone08021 = $zoneDirector
            ->create()
            ->setName('Postalcode 08021')
            ->setCode('zone-08021')
            ->addLocation($this->getReference('location-sant-celoni'))
            ->addLocation($this->getReference('location-08021'));

        $this->setReference('zone-08021', $zone08021);
        $zoneDirector->save($zone08021);

        $zoneViladecavalls = $zoneDirector
            ->create()
            ->setName('Viladecavalls i alrededores')
            ->setCode('zone-viladecavalls')
            ->addLocation($this->getReference('location-viladecavalls'));

        $this->setReference('zone-viladecavalls', $zoneViladecavalls);
        $zoneDirector->save($zoneViladecavalls);
    }
public function load ( ObjectManager $ objectManager ) { /**
         * @var ObjectDirector $zoneDirector
         */ $ zoneDirector = $ this -> getDirector ( 'zone' ) ; $ zone08021 = $ zoneDirector -> create ( ) -> setName ( 'Postalcode 08021' ) -> setCode ( 'zone-08021' ) -> addLocation ( $ this -> getReference ( 'location-sant-celoni' ) ) -> addLocation ( $ this -> getReference ( 'location-08021' ) ) ; $ this -> setReference ( 'zone-08021' , $ zone08021 ) ; $ zoneDirector -> save ( $ zone08021 ) ; $ zoneViladecavalls = $ zoneDirector -> create ( ) -> setName ( 'Viladecavalls i alrededores' ) -> setCode ( 'zone-viladecavalls' ) -> addLocation ( $ this -> getReference ( 'location-viladecavalls' ) ) ; $ this -> setReference ( 'zone-viladecavalls' , $ zoneViladecavalls ) ; $ zoneDirector -> save ( $ zoneViladecavalls ) ; }
Loads sample fixtures for Zone entities.

@param ObjectManager $objectManager
Loads sample fixtures for Zone entities .