1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 05:36:54 +02:00

feat(console): update command for EntriesFetch

This commit is contained in:
Awilum
2022-04-14 12:03:25 +03:00
parent 1eab3adcc8
commit 02ad79e318

View File

@@ -85,10 +85,11 @@ class EntriesFetchCommand extends Command
$input->getOption('find-contains') and $options['find']['contains'] = $input->getOption('find-contains');
$input->getOption('find-not-contains') and $options['find']['not_contains'] = $input->getOption('find-not-contains');
$input->getOption('find-path') and $options['find']['path'] = $input->getOption('find-path');
$input->getOption('find-sort-by') and $options['find']['sort-by'] = $input->getOption('find-sort-by');
$input->getOption('find-sort-by-key') and $options['find']['sort_by']['key'] = $input->getOption('find-sort-by');
$input->getOption('find-sort-by-direction') and $options['find']['sort_by']['direction'] = $input->getOption('find-sort-by');
$input->getOption('filter-group-by') and $options['filter']['group_by'] = $input->getOption('filter-sort-by');
$input->getOption('filter-return') and $options['filter']['return'] = $input->getOption('filter-sort-by');
$input->getOption('filter-group-by') and $options['filter']['group_by'] = $input->getOption('filter-group-by');
$input->getOption('filter-return') and $options['filter']['return'] = $input->getOption('filter-return');
if ($input->getOption('filter-where')) {
$filterWhere = $input->getOption('filter-where');