Added call to ->getSql() back to ensure parsing has happened so we can determine the root alias.
This commit is contained in:
parent
91be68810c
commit
b9a3e0cd20
@ -179,6 +179,8 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
|
||||
*/
|
||||
public function getRootAlias()
|
||||
{
|
||||
$this->getSql();
|
||||
|
||||
reset($this->_aliasMap);
|
||||
|
||||
return key($this->_aliasMap);
|
||||
|
Loading…
Reference in New Issue
Block a user