diff options
author | godzilla80@gmx.net <> | 2009-03-19 22:07:39 +0000 |
---|---|---|
committer | godzilla80@gmx.net <> | 2009-03-19 22:07:39 +0000 |
commit | d634db87d432c87a092f1c4cee69a56914cbaa97 (patch) | |
tree | 2a681041b70b22b61f3325725d663d62f8338e50 /framework/Data | |
parent | de021710e1c0dae732e61ecb42a9ac60440f55ee (diff) |
replace array_push() function calls with native language constuct if make sense
Diffstat (limited to 'framework/Data')
-rw-r--r-- | framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php | 2 | ||||
-rw-r--r-- | framework/Data/SqlMap/Statements/TMappedStatement.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php b/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php index a352cb07..85dd6735 100644 --- a/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php +++ b/framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php @@ -84,7 +84,7 @@ abstract class TActiveRecordRelation $obj->collectForeignObjects($results);
}
else if($results instanceof TActiveRecordRelation)
- array_push($stack,$this); //call it later
+ $stack[] = $this; //call it later
return $results;
}
diff --git a/framework/Data/SqlMap/Statements/TMappedStatement.php b/framework/Data/SqlMap/Statements/TMappedStatement.php index 6b11b107..c4bb53dd 100644 --- a/framework/Data/SqlMap/Statements/TMappedStatement.php +++ b/framework/Data/SqlMap/Statements/TMappedStatement.php @@ -869,7 +869,7 @@ class TMappedStatement extends TComponent implements IMappedStatement $postSelect->setMethod(self::QUERY_FOR_OBJECT);
if(!$property->getLazyLoad())
- array_push($this->_selectQueque, $postSelect);
+ $this->_selectQueque[] = $postSelect;
}
/**
|