From 862b9a093ab7961fb99ae034876889f0b69f7fc0 Mon Sep 17 00:00:00 2001 From: "christophe.boulain" <> Date: Wed, 7 Jan 2009 07:28:22 +0000 Subject: Fixed Issue#65: Improvement of TActiveRecord::populateObjects() --- HISTORY | 1 + framework/Data/ActiveRecord/TActiveRecord.php | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 2ac82ba7..9eef2203 100644 --- a/HISTORY +++ b/HISTORY @@ -16,6 +16,7 @@ ENH: Issue#77 - TJsonService missing exception messages (Carl) ENH: Issue#29 - Ability to specify position of popup TDatePicker/TActiveDatePicker (Carl) ENH: Issue#75 - TApplication::setRuntimePath() to update uniqueID and cacheFile (Carl) ENH: Issue#64 - Don't throw exception on wrong value for TListcontrols (Carl) +ENH: Issue#65 - Improvement of TActiveRecord::populateObjects() (Christophe) NEW: Issue#51 - Additional template tag (Carl) Version 3.1.3 November 1, 2008 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; } -- cgit v1.2.3