getTableAlias() causing infinite nesting and fatal error.

I have this code in an AR model:


   /**

	* Scope por default.

	*

	* @return array

	*/

   public function defaultScope()

   {

  	$alias = $this->getTableAlias();

  	return array(

 		'condition'=>$alias.".activo='1'",

  	);

   }

I get this fatal error:

Any help in solving this problem is appreciated. Thanks.




$alias = $this->getTableAlias(false, false);



Details can be found in the API doc.

Köszönöm!

Guys, is that Yii’s nesting level or is this a php setting?

I think it’s PHP-related…