예제 #1
0
 public function insert(C3op_Projects_Project $new)
 {
     $data = array('title' => $new->getTitle(), 'client' => $new->getClient(), 'our_responsible' => $new->GetOurResponsible(), 'responsible_at_client' => $new->GetResponsibleAtClient(), 'begin_date' => $new->GetBeginDate(), 'finish_date' => $new->GetFinishDate(), 'status' => $new->GetStatus(), 'value' => $new->GetValue(), 'contract_nature' => $new->GetContractNature(), 'area_activity' => $new->GetAreaActivity(), 'overhead' => $new->GetOverhead(), 'management_fee' => $new->GetManagementFee(), 'object' => $new->GetObject(), 'summary' => $new->GetSummary(), 'observation' => $new->GetObservation());
     $this->db->insert('projects_projects', $data);
     $new->SetId((int) $this->db->lastInsertId());
     $this->identityMap[$new] = $new->GetId();
 }