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
@ -178,8 +178,11 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
|
||||
* @return array
|
||||
*/
|
||||
public function getRootAlias()
|
||||
{
|
||||
if( !$this->_aliasMap )
|
||||
{
|
||||
$this->getSql();
|
||||
}
|
||||
|
||||
reset($this->_aliasMap);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user