1
0
mirror of synced 2024-12-14 07:06:04 +03:00

Small changes to the recent fix from jonwage

This commit is contained in:
romanb 2007-08-14 18:28:35 +00:00
parent f123a7cdcd
commit 8aa8c54fb3
2 changed files with 3 additions and 4 deletions

View File

@ -179,8 +179,7 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
*/
public function getRootAlias()
{
if( !$this->_aliasMap )
{
if (!$this->_aliasMap) {
$this->getSql();
}

View File

@ -1534,13 +1534,13 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
public function copy(Doctrine_Query $query = null)
{
if( !$query )
{
if (!$query) {
$query = $this;
}
$new = new Doctrine_Query();
$new->_dqlParts = $query->_dqlParts;
$new->_hydrationMode = $query->_hydrationMode;
return $new;
}