Exemplo n.º 1
0
 /**
  * Hydrate the update form for this object, before passing it to the update template
  *
  * @param \Thelia\Model\Country $object
  */
 protected function hydrateObjectForm($object)
 {
     $data = array('id' => $object->getId(), 'locale' => $object->getLocale(), 'visible' => $object->getVisible() ? true : false, 'title' => $object->getTitle(), 'chapo' => $object->getChapo(), 'description' => $object->getDescription(), 'postscriptum' => $object->getPostscriptum(), 'isocode' => $object->getIsocode(), 'isoalpha2' => $object->getIsoalpha2(), 'isoalpha3' => $object->getIsoalpha3(), 'has_states' => $object->getHasStates() ? true : false, 'need_zip_code' => $object->getNeedZipCode() ? true : false, 'zip_code_format' => $object->getZipCodeFormat());
     return $this->createForm(AdminForm::COUNTRY_MODIFICATION, 'form', $data);
 }