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

Added extra logic to getRootAlias() so it only calles getSql() if _aliasMap is not present already

parent b9a3e0cd
......@@ -179,8 +179,11 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
*/
public function getRootAlias()
{
$this->getSql();
if( !$this->_aliasMap )
{
$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