-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fix "field" action - return all records, allow Action as scope condition #861
Conversation
008adbd
to
7d598f1
Compare
@georgehristov can you please review? Do you know why 7d598f1#diff-facfb8206c512f6ada3a34d73c4ed464957c84987a77f986e2b8357bca34ab29R205 is needed to NOT check keys? The scope is for |
f99fa4c
to
89912a6
Compare
src/Persistence/Array_.php
Outdated
|
||
if ($id === self::ID_LOAD_ONE || $id === self::ID_LOAD_ANY) { | ||
if (count($this->data[$model->table]) === 0) { | ||
$action = $this->action($model, 'select'); | ||
$action->generator->rewind(); // needed for some reasons! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed, should this be done in the action itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but would be good if @georgehristov could take a look too
89912a6
to
08dd4ba
Compare
b765e0c
to
2085c78
Compare
merge after #860
also fixes array persistence
tryLoad
which previously was completely ignoring all conditions (they were used only when loading data using iterator)