public function callStatic($name, array $arguments) {
		if(isset($this->statics[$name]))
			return call_user_func_array($this->statics[$name], $arguments);
		else {
			foreach($this->staticsCatchAll as $behavior) {
				$processed = false;
				$res = call_user_func_array([$behavior, 'staticCatchAll'], [$name, $arguments, &$processed]);
				if($processed)
					return $res;
			}

			if(method_exists($this, $name))
				return call_user_func_array([$this, $name], $arguments);

			throw new \Exception('Static method '.$name.' does not exist for entity '.$this->entityClass);
		}
	}
public function callStatic($name, array $arguments) {
		if(isset($this->statics[$name]))
			return call_user_func_array($this->statics[$name], $arguments);
		else {
			foreach($this->staticsCatchAll as $behavior) {
				$processed = false;
				$res = call_user_func_array([$behavior, 'staticCatchAll'], [$name, $arguments, &$processed]);
				if($processed)
					return $res;
			}

			if(method_exists($this, $name))
				return call_user_func_array([$this, $name], $arguments);

			throw new \Exception('Static method '.$name.' does not exist for entity '.$this->entityClass);
		}
	}
public function callStatic ( $ name , array $ arguments ) { if ( isset ( $ this -> statics [ $ name ] ) ) return call_user_func_array ( $ this -> statics [ $ name ] , $ arguments ) ; else { foreach ( $ this -> staticsCatchAll as $ behavior ) { $ processed = false ; $ res = call_user_func_array ( [ $ behavior , 'staticCatchAll' ] , [ $ name , $ arguments , & $ processed ] ) ; if ( $ processed ) return $ res ; } if ( method_exists ( $ this , $ name ) ) return call_user_func_array ( [ $ this , $ name ] , $ arguments ) ; throw new \ Exception ( 'Static method ' . $ name . ' does not exist for entity ' . $ this -> entityClass ) ; } }
Handle a custom static call.
@param  string $name
@param  array  $arguments
@return mixed
Handle a custom static call .