/** * * @return Location_Model_CityRegion */ public function getParent() { if (is_null($this->parent) && (!is_null($this->parent_id) && !empty($this->parent_id))) { $p = new Location_Persist_Dao_CityRegion(); $this->parent = $p->get($this->parent_id); } return $this->parent; }
public function getByName($name) { try { $u = new Location_Persist_Dao_CityRegion(); return $u->getByName($name); } catch (Exception $e) { throw $e; } }