/** * Implement this by setting $obj values (e.g. $obj->setId($row->Id) from a DB row * @param GD_Model_DeploymentFile $obj * @param Zend_Db_Table_Row_Abstract $row */ protected function populateObjectFromRow(&$obj, Zend_Db_Table_Row_Abstract $row) { $obj->setId($row->id)->setDeploymentsId($row->deployments_id)->setDeploymentFileActionsId($row->deployment_file_actions_id)->setDeploymentFileStatusesId($row->deployment_file_statuses_id)->setDetails($row->details); $dfa_map = new GD_Model_DeploymentFileActionsMapper(); $deployment_file_action = new GD_Model_DeploymentFileAction(); $dfa_map->populateObjectFromRow($deployment_file_action, $row->findParentRow('GD_Model_DbTable_DeploymentFileActions')); $obj->setDeploymentFileAction($deployment_file_action); $dfs_map = new GD_Model_DeploymentFileStatusesMapper(); $deployment_file_status = new GD_Model_DeploymentFileStatus(); $dfs_map->populateObjectFromRow($deployment_file_status, $row->findParentRow('GD_Model_DbTable_DeploymentFileStatuses')); $obj->setDeploymentFileStatus($deployment_file_status); }