lithium\data\source\MongoDb::__call PHP Method

__call() public method

For example (assuming this instance is stored in Connections as 'mongo'): Manually repairs a MongoDB instance Connections::get('mongo')->repairDB($db); // returns null
public __call ( string $method, array $params ) : mixed
$method string The name of native method to call. See the link above for available class methods.
$params array A list of parameters to be passed to the native method.
return mixed The return value of the native method specified in `$method`.
    public function __call($method, $params)
    {
        if (!$this->server && !$this->connect()) {
            return null;
        }
        return call_user_func_array(array(&$this->server, $method), $params);
    }