private function findModel($id) { //transfer the id from string to MongoId $id = new \MongoId($id); return EntryForm::findOne(['_id' => $id]); }