From 7c0aca3cd26cda243424e81c5407b3170c9b57ce Mon Sep 17 00:00:00 2001 From: zYne Date: Fri, 5 Oct 2007 20:29:33 +0000 Subject: [PATCH] --- lib/Doctrine/Record/Abstract.php | 2 +- lib/Doctrine/Table.php | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Record/Abstract.php b/lib/Doctrine/Record/Abstract.php index 5cfffe61a..85e5a959c 100644 --- a/lib/Doctrine/Record/Abstract.php +++ b/lib/Doctrine/Record/Abstract.php @@ -257,7 +257,7 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access */ public function bindQueryParts(array $queryParts) { - $this->_table->bindQueryParts(array $queryParts); + $this->_table->bindQueryParts($queryParts); return $this; } diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 87ca69a15..dd54964da 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -159,6 +159,8 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable * @var array $_filters an array containing all record filters attached to this table */ protected $_filters = array(); + + protected $_queryParts = array(); @@ -1292,6 +1294,19 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable return $this; } + /** + * bindQueryParts + * binds query parts to given component + * + * @param array $queryParts an array of pre-bound query parts + * @return Doctrine_Record this object + */ + public function bindQueryParts(array $queryParts) + { + $this->_queryParts = $queryParts; + + return $this; + } public function unshiftFilter(Doctrine_Record_Filter $filter) { $filter->setTable($this); @@ -1315,4 +1330,4 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable { return Doctrine_Lib::getTableAsString($this); } -} \ No newline at end of file +}