/** * {@inheritdoc} */ protected function getExtensions() { $om = $this->getMock('Doctrine\\Common\\Persistence\\ObjectManager'); $s2 = new \Genemu\Bundle\FormBundle\Form\JQuery\Type\Select2Type('hidden'); $city = new CitySelectType($om); return array(new PreloadedExtension(array($city->getName() => $city, $s2->getName() => $s2), array())); }
/** * {@inheritdoc} */ protected function getExtensions() { $om = $this->getMock('Doctrine\\Common\\Persistence\\ObjectManager'); $s2 = new \Genemu\Bundle\FormBundle\Form\JQuery\Type\Select2Type('hidden'); $city = new CitySelectType($om); $address = new AddressType(); $phone = new PhoneType(); $contactphone = new ContactPhoneType(); $contactphonecollection = new ContactPhoneCollectionType(); return array(new PreloadedExtension(array($address->getName() => $address, $city->getName() => $city, $s2->getName() => $s2, $phone->getName() => $phone, $contactphone->getName() => $contactphone, $contactphonecollection->getName() => $contactphonecollection), array())); }