public function find($plogId,Pment_Models_Plog $plog) { $resultSet = $this->getDbTable()->find($plogId); if (0 == count($resultSet)) { return; } $row = $resultSet->current(); $plog->setPlogId($row->pLogId) ->setProjectId($row->projectId) ->setLogDate($row->logDate) ->setWeatherAm($row->weatherAm) ->setWeatherPm($row->weatherPm) ->setTempHi($row->tempHi) ->setTempLo($row->tempLo) ->setPart($row->part) ->setNumber($row->number) ->setOperator($row->operator) ->setForeman($row->foreman) ->setSafety($row->safety) ->setProblem($row->problem) ->setResolve($row->resolve) ->setRelatedFile($row->relatedFile) ->setChangeSig($row->changeSig) ->setMaterial($row->material) ->setContactId($row->contactId) ->setRemark($row->remark) ->setCTime($row->cTime); $contacts = new Employee_Models_ContactMapper(); $contactName = $contacts->findContactName($plog->getContactId()); $plog->setContactName($contactName); }