Permalink
Browse files

fix $class_name not defined

  • Loading branch information...
1 parent 3e2fb25 commit c74202abbbccff6cfb940b896b459a160b38e2ae @jrschumacher committed Feb 9, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/BaseMongoRecord.php
@@ -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 c74202a

Please sign in to comment.