private function Create(\model\Boat $boat) { $stmt = $this->db->prepare("INSERT INTO boat (member, length, type) VALUE (?, ?, ?)"); $stmt->execute(array($boat->getOwner(), $boat->GetLength(), $boat->GetType())); $boat->SetID($this->db->lastInsertId()); }