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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue