Closed qooco closed 4 months ago
Thanks, would it be possible to add a small unit test to it as well? If not, please let me know. I think I can help with that.
A bit busy, no time.
Thanks @qooco, the update
didn't require the id so far, because it wasn't a partial. We'll discuss it internally. I support your changes. The only exception is the create. There, I don't want to have a partial.
Ok I Understand about update.
About create, thats too ok, in most cases it is right I think (except such properties as created_at|updated_at). As variant we can use EntityCreateRequest with only required properties...
Should I update PR to remove partial from create (rewrite commit) ?
PR update: only Partial
This is a changes for DataService methods (create & update & updateAll) to use Partial Entity
Also have question, why update method receives only one argument Entity,
is not better?