public function __call($method, $arguments) { $return = call_user_func_array(array($this->cursor, $method), $arguments); if ($return instanceof MongoCursor) { return $this; } return $return; }