|
|
@@ -93,7 +93,7 @@ class Mooses_AbstractMongo extends Mooses_Mongodb_Mongo_Document {
|
|
|
while($_result = $_mongoCursor->next()){
|
|
|
$_object = new $_calledClass($_result);
|
|
|
$_object->loadKey = $this->_loadKey;
|
|
|
- array_push($_arrayResults, $_object);
|
|
|
+ array_push($_arrayResults, (($_forceArray) ? $_object->getData() : $_object));
|
|
|
}
|
|
|
if($_order !== false && is_array($_order)){
|
|
|
$this->_sorterAttribute = $_order[0];
|