public function insert(C3op_Projects_Action $new) { $data = array('title' => $new->getTitle(), 'project' => $new->GetProject(), 'done' => $new->GetDone(), 'status' => $new->GetStatus(), 'description' => $new->GetDescription(), 'subordinated_to' => $new->GetSubordinatedTo(), 'responsible' => $new->GetResponsible(), 'milestone' => $new->GetMilestone(), 'requirement_for_receiving' => $new->GetRequirementForReceiving()); $this->db->insert('projects_actions', $data); $new->SetId((int) $this->db->lastInsertId()); $this->identityMap[$new] = $new->GetId(); $this->insertDates($new); }