public function update() { $previous_object = RealEstateAgency_Object_Street::loadById($this->getGlobalData(), $this->obj_id); if ($previous_object) { $row = $previous_object->zend_row; $this->parent_id = $row->settlement; // keep parent identifier !!! $this->toZendRow($row); $row->save(); } }
private function edit() { $object = RealEstateAgency_Object_Street::loadById($this->getGlobalData(), $this->object_id); if ($object) { $this->object_id = $object->getId(); $this->object_name = $object->getObjectName(); $this->page_mode = 'edit'; // set other action now; } }