public function save($data) { $this->connection->{$this->collection}->save($data); if (isset($data['_id'])) { return $data['_id']; } return false; }