From e9486a539c3a43afcc129f647917780ffc1ed6cd Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 8 May 2007 08:06:13 +0000 Subject: Fixed #458 --- framework/Data/SqlMap/TSqlMapGateway.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Data/SqlMap/TSqlMapGateway.php') diff --git a/framework/Data/SqlMap/TSqlMapGateway.php b/framework/Data/SqlMap/TSqlMapGateway.php index b2819740..51a13a82 100644 --- a/framework/Data/SqlMap/TSqlMapGateway.php +++ b/framework/Data/SqlMap/TSqlMapGateway.php @@ -163,10 +163,10 @@ class TSqlMapGateway extends TComponent * @param string The property of the result object to be used as the value. * @return TMap Array object containing the rows keyed by keyProperty. */ - public function queryForMap($statementName, $parameter=null, $keyProperty=null, $valueProperty=null) + public function queryForMap($statementName, $parameter=null, $keyProperty=null, $valueProperty=null, $skip=-1, $max=-1) { $statement = $this->getSqlMapManager()->getMappedStatement($statementName); - return $statement->executeQueryForMap($this->getDbConnection(), $parameter, $keyProperty, $valueProperty); + return $statement->executeQueryForMap($this->getDbConnection(), $parameter, $keyProperty, $valueProperty, $skip, $max); } /** @@ -182,10 +182,10 @@ class TSqlMapGateway extends TComponent * @param string The property of the result object to be used as the value. * @return TMap Array object containing the rows keyed by keyProperty. */ - public function queryForMapWithRowDelegate($statementName, $delegate, $parameter=null, $keyProperty=null, $valueProperty=null) + public function queryForMapWithRowDelegate($statementName, $delegate, $parameter=null, $keyProperty=null, $valueProperty=null, $skip=-1, $max=-1) { $statement = $this->getSqlMapManager()->getMappedStatement($statementName); - return $statement->executeQueryForMap($this->getDbConnection(), $parameter, $keyProperty, $valueProperty, $delegate); + return $statement->executeQueryForMap($this->getDbConnection(), $parameter, $keyProperty, $valueProperty, $skip, $max, $delegate); } /** -- cgit v1.2.3