Small changes to the recent fix from jonwage
This commit is contained in:
parent
f123a7cdcd
commit
8aa8c54fb3
@ -179,8 +179,7 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
|
||||
*/
|
||||
public function getRootAlias()
|
||||
{
|
||||
if( !$this->_aliasMap )
|
||||
{
|
||||
if (!$this->_aliasMap) {
|
||||
$this->getSql();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user