Granada\ORM::__callStatic PHP Method

__callStatic() public static method

In this case we are attempting to convert camel case formatted methods into underscore formatted methods. This allows us to call ORM methods using camel case and remain backwards compatible.
public static __callStatic ( string $name, array $arguments ) : ORM
$name string
$arguments array
return ORM
    public static function __callStatic($name, $arguments)
    {
        $method = strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $name));
        return call_user_func_array(array(self, $method), $arguments);
    }
ORM