Exemple #1
0
 /**
  * Loads query and post params into the model.
  * @param ActiveRecord $model
  * @param Request $request
  * @return bool true if post params were loaded.
  */
 protected function load($model, $request)
 {
     $model->load($request->getQueryParams());
     return $model->load($request->getBodyParams());
 }