From d634db87d432c87a092f1c4cee69a56914cbaa97 Mon Sep 17 00:00:00 2001 From: "godzilla80@gmx.net" <> Date: Thu, 19 Mar 2009 22:07:39 +0000 Subject: replace array_push() function calls with native language constuct if make sense --- framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php | 2 +- framework/Data/SqlMap/Statements/TMappedStatement.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Data') 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; } /** -- cgit v1.2.3