public function __call($method, $parameters)
{
if (method_exists($this->model, $scope = 'scope' . ucfirst($method))) {
array_unshift($parameters, $this);
call_user_func_array(array($this->model, $scope), $parameters);
} else {
$result = call_user_func_array(array($this->query, $method), $parameters);
}
return in_array($method, $this->passthru) ? $result : $this;
}