|
@@ 1251-1257 (lines=7) @@
|
| 1248 |
|
public function createModelQueryParams($model, $query_params) |
| 1249 |
|
{ |
| 1250 |
|
$model_query_params = array(); |
| 1251 |
|
if (isset($query_params['where'])) { |
| 1252 |
|
$model_query_params[0] = ModelDataTranslator::prepareConditionsQueryParamsForModels( |
| 1253 |
|
$query_params['where'], |
| 1254 |
|
$model, |
| 1255 |
|
$this->getModelVersionInfo()->requestedVersion() |
| 1256 |
|
); |
| 1257 |
|
} |
| 1258 |
|
if (isset($query_params['order_by'])) { |
| 1259 |
|
$order_by = $query_params['order_by']; |
| 1260 |
|
} elseif (isset($query_params['orderby'])) { |
|
@@ 1288-1294 (lines=7) @@
|
| 1285 |
|
if ($group_by !== null) { |
| 1286 |
|
$model_query_params['group_by'] = $group_by; |
| 1287 |
|
} |
| 1288 |
|
if (isset($query_params['having'])) { |
| 1289 |
|
$model_query_params['having'] = ModelDataTranslator::prepareConditionsQueryParamsForModels( |
| 1290 |
|
$query_params['having'], |
| 1291 |
|
$model, |
| 1292 |
|
$this->getModelVersionInfo()->requestedVersion() |
| 1293 |
|
); |
| 1294 |
|
} |
| 1295 |
|
if (isset($query_params['order'])) { |
| 1296 |
|
$model_query_params['order'] = $query_params['order']; |
| 1297 |
|
} |