public function setModel(Model $model) { $this->model = $model; $this->query->from($model->getPathInfo(), $model->getPathParams()); return $this; }
public function service($pathInfo, array $pathParams = []) { $query = new QueryBuilder($this); return $query->from($pathInfo, $pathParams); }