Finish 4.13.4

This commit is contained in:
4Giedrius committed 2015-01-26 11:44:14 +02:00
commit 5d46326e4d
1 file changed
+2 -1
+2 -1
View File
@@ -181,7 +181,8 @@ class Box_Database implements InjectionAwareInterface
public function convertToModels($modelName, array $records)
{
$result = array();
$beans = $this->orm->convertToBeans($modelName, $records);
$type = $this->_getTypeFromModelName($modelName);
$beans = $this->orm->convertToBeans($type, $records);
foreach($beans as $bean){
$result[] = $bean->box();
}