Added extra logic to getRootAlias() so it only calles getSql() if _aliasMap is not present already
This commit is contained in:
parent
b9a3e0cd20
commit
f123a7cdcd
1 changed files with 5 additions and 2 deletions
|
@ -179,8 +179,11 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
|
||||||
*/
|
*/
|
||||||
public function getRootAlias()
|
public function getRootAlias()
|
||||||
{
|
{
|
||||||
$this->getSql();
|
if( !$this->_aliasMap )
|
||||||
|
{
|
||||||
|
$this->getSql();
|
||||||
|
}
|
||||||
|
|
||||||
reset($this->_aliasMap);
|
reset($this->_aliasMap);
|
||||||
|
|
||||||
return key($this->_aliasMap);
|
return key($this->_aliasMap);
|
||||||
|
|
Loading…
Add table
Reference in a new issue