protected function setKeysForSaveQuery($query) { $query->where($this->getKeyName(), new MongoID($this->getKey())); return $query; }