summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord/TActiveRecord.php
diff options
context:
space:
mode:
authorchristophe.boulain <>2009-01-07 07:28:22 +0000
committerchristophe.boulain <>2009-01-07 07:28:22 +0000
commit862b9a093ab7961fb99ae034876889f0b69f7fc0 (patch)
tree375a7996eaec4574e9c11db1881751cbbf4127f6 /framework/Data/ActiveRecord/TActiveRecord.php
parent38d388920b3b947deeb0ce5fd037f1afa5fbc844 (diff)
Fixed Issue#65: Improvement of TActiveRecord::populateObjects()
Diffstat (limited to 'framework/Data/ActiveRecord/TActiveRecord.php')
-rw-r--r--framework/Data/ActiveRecord/TActiveRecord.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php
index fa134a9f..24227586 100644
--- a/framework/Data/ActiveRecord/TActiveRecord.php
+++ b/framework/Data/ActiveRecord/TActiveRecord.php
@@ -527,9 +527,8 @@ abstract class TActiveRecord extends TComponent
protected function populateObjects($reader)
{
$result=array();
- $class = get_class($this);
foreach($reader as $data)
- $result[] = self::createRecord($class, $data);
+ $result[] = $this->populateObject($data);
return $result;
}