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

Implement detection of modified fields #19

Closed
romaninsh opened this issue May 19, 2016 · 1 comment
Closed

Implement detection of modified fields #19

romaninsh opened this issue May 19, 2016 · 1 comment
Assignees

Comments

@romaninsh
Copy link
Member

romaninsh commented May 19, 2016

Either Dirty or comparing with the original values. Not sure which one yet

Dirty: will fail if same value is written back.

Original: need to store original value and needlessly compare.

Perhaps a combination can be used, e.g. copy-on-modify.

$m['name'] = 'John';
var_dump($m->saveAction());

^^ the query should only update 'name' and not 'surname'

@romaninsh romaninsh modified the milestone: 0.2-Model May 19, 2016
@romaninsh romaninsh self-assigned this May 19, 2016
@romaninsh
Copy link
Member Author

This was fixed in #21

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