/** * * @return Location_Model_State */ public function getState() { if (is_null($this->state) && !is_null($this->state_id)) { $p = new Location_Persist_Dao_State(); $this->state = $p->get($this->state_id); } return $this->state; }
public function getByName($name) { try { $u = new Location_Persist_Dao_State(); return $u->getByName($name); } catch (Exception $e) { throw $e; } }