[+BUGFIX] Extbase (Persistence): Follow-up to r2371. Fixed NULL initialization and...
authorJochen Rau <j.rau@web.de>
Sun, 20 Jun 2010 03:57:33 +0000 (03:57 +0000)
committerJochen Rau <j.rau@web.de>
Sun, 20 Jun 2010 03:57:33 +0000 (03:57 +0000)
typo3/sysext/extbase/Classes/Persistence/QOM/QueryObjectModelFactory.php
typo3/sysext/extbase/Classes/Persistence/QOM/Statement.php

index e7d722e..33520a0 100644 (file)
@@ -92,10 +92,11 @@ class Tx_Extbase_Persistence_QOM_QueryObjectModelFactory implements Tx_Extbase_P
         * Sets a statement as constraint. This is not part of the JCR 2.0 Specification!
         *
         * @param string $statement The statement
-        * @param object $language The language of the statement. Must be a supported languanguage defined as Tx_Extbase_Persistence_QOM_QueryObjectModelInterface::JCR_* or Tx_Extbase_Persistence_QOM_QueryObjectModelInterface::TYPO3_* or 
+        * @param array $boundVariables An array of variables to bind to the statement
+        * @param object $language The language of the statement. Must be a supported languanguage defined as Tx_Extbase_Persistence_QOM_QueryObjectModelFactory::TYPO3_*
         * @return Tx_Extbase_Persistence_QOM_StatementInterface
         */
-       public function statement($statement, $boundVariables, $language = NULL) {
+       public function statement($statement, array $boundVariables = array(), $language = Tx_Extbase_Persistence_QOM_Statement::TYPO3_SQL_MYSQL) {
                return t3lib_div::makeInstance('Tx_Extbase_Persistence_QOM_Statement', $statement, $boundVariables, $language);
        }
 
index 9f8d4fa..96cbfdf 100644 (file)
@@ -60,7 +60,7 @@ class Tx_Extbase_Persistence_QOM_Statement {
         *
         * @param string $statement The statement
         * @param array $boundVariables An array of variables to bind to the statement
-        * @param string $language 
+        * @param string $language The query language. One of the above constants.
         */
        public function __construct($statement, array $boundVariables = array(), $language = self::TYPO3_SQL_MYSQL) {
                $this->statement = $statement;