Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active Selection should provide origin array with elemnts or ActiveQuery #675

Open
nadar opened this issue Oct 14, 2021 · 0 comments
Open
Assignees

Comments

@nadar
Copy link
Contributor

nadar commented Oct 14, 2021

Sometimes it could be helpfull to have the original selection, therefor it would be better to either all $items as optional array argument or instead of findAll() just a find():

$items = $class::findAll(Yii::$app->request->getBodyParam('ids', [0]));

for bc reasons maybe a property $selectedIds in $activeSelect object.

$object->selecetedIds = $ids;
return $object->handle($items);

@nadar nadar self-assigned this Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant