1
0
mirror of synced 2025-01-18 06:21:40 +03:00

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

This commit is contained in:
Jonathan.Wage 2007-08-14 18:25:06 +00:00
parent b9a3e0cd20
commit f123a7cdcd

View File

@ -178,8 +178,11 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
* @return array
*/
public function getRootAlias()
{
if( !$this->_aliasMap )
{
$this->getSql();
}
reset($this->_aliasMap);