Commit b9a3e0cd authored by Jonathan.Wage's avatar Jonathan.Wage

Added call to ->getSql() back to ensure parsing has happened so we can determine the root alias.

parent 91be6881
......@@ -179,6 +179,8 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
*/
public function getRootAlias()
{
$this->getSql();
reset($this->_aliasMap);
return key($this->_aliasMap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment