Permalink
Browse files

fix issue where $class_name is undefined

  • Loading branch information...
jrschumacher committed Dec 6, 2011
1 parent a3dbb5b commit a6e722a83b14d128639e513b44baa48ede554e4c
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/BaseMongoRecord.php
View
@@ -177,6 +177,7 @@ protected static function instantiate($document) {
}
// Instantiate method
+ $class_name = get_called_class();
return new $class_name($document, FALSE);
}

0 comments on commit a6e722a

Please sign in to comment.