public function getModifiedBy()
 {
     $this->__load();
     return parent::getModifiedBy();
 }
 public function addLocationTypeAction()
 {
     $form = new Form_Iadmin_LocationTypeAdd();
     if ($this->_request->isPost()) {
         if ($this->_request->getPost()) {
             $form_values = $this->_request->getPost();
             $location_type = new LocationTypes();
             $location_type->setLocationTypeName($form_values['location_type_name']);
             $geo_level = $this->_em->getRepository('GeoLevels')->find($form_values['geo_level_id']);
             $location_type->setGeoLevel($geo_level);
             $location_type->setStatus($form_values['status']);
             $created_by = $this->_em->find('Users', $this->_userid);
             $location_type->setCreatedBy($created_by);
             $location_type->setCreatedDate(App_Tools_Time::now());
             $location_type->setModifiedBy($created_by);
             $location_type->setModifiedDate(App_Tools_Time::now());
             $this->_em->persist($location_type);
             $this->_em->flush();
         }
     }
     $this->_redirect("/iadmin/manage-locations/location-type?success=1");
 }
 public function getCreatedBy()
 {
     $this->__load();
     return parent::getCreatedBy();
 }