Commit fda1f370 authored by doctrine's avatar doctrine

--no commit message

--no commit message
parent 24528cb8
...@@ -31,7 +31,7 @@ class Doctrine_RawSql extends Doctrine_Hydrate { ...@@ -31,7 +31,7 @@ class Doctrine_RawSql extends Doctrine_Hydrate {
* parseQuery * parseQuery
* *
* @param string $query * @param string $query
* @return void * @return Doctrine_RawSql
*/ */
public function parseQuery($query) { public function parseQuery($query) {
preg_match_all('/{([^}{]*)}/U', $query, $m); preg_match_all('/{([^}{]*)}/U', $query, $m);
...@@ -71,6 +71,8 @@ class Doctrine_RawSql extends Doctrine_Hydrate { ...@@ -71,6 +71,8 @@ class Doctrine_RawSql extends Doctrine_Hydrate {
$this->parts = $parts; $this->parts = $parts;
$this->parts["select"] = array(); $this->parts["select"] = array();
return $this;
} }
/** /**
* getQuery * getQuery
...@@ -144,7 +146,7 @@ class Doctrine_RawSql extends Doctrine_Hydrate { ...@@ -144,7 +146,7 @@ class Doctrine_RawSql extends Doctrine_Hydrate {
* *
* @param string $tableAlias * @param string $tableAlias
* @param string $componentName * @param string $componentName
* @return void * @return Doctrine_RawSql
*/ */
public function addComponent($tableAlias, $componentName) { public function addComponent($tableAlias, $componentName) {
$e = explode(".", $componentName); $e = explode(".", $componentName);
...@@ -172,6 +174,8 @@ class Doctrine_RawSql extends Doctrine_Hydrate { ...@@ -172,6 +174,8 @@ class Doctrine_RawSql extends Doctrine_Hydrate {
$prevAlias = $alias; $prevAlias = $alias;
$prevPath = $currPath; $prevPath = $currPath;
} }
return $this;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment