1
0
mirror of synced 2024-12-13 14:56:01 +03:00

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

This commit is contained in:
Jonathan.Wage 2007-08-14 18:11:06 +00:00
parent 91be68810c
commit b9a3e0cd20

View File

@ -179,6 +179,8 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
*/
public function getRootAlias()
{
$this->getSql();
reset($this->_aliasMap);
return key($this->_aliasMap);