Skip to content

Should we allow deactivating unitOfWork on create, update or delete method #94

@jdeniau

Description

@jdeniau

Currently, we can deactivate unitOfWork for a call on the client :

sdk.getRepository('foo')
  .withUnitOfWork(false)
  .findAll()

We voluntarily throw an exception on create, update and delete call to prevent this:

sdk.getRepository('foo')
  .withUnitOfWork(false)
  .create(someEntity) // this will throw an error

We made this decision as we are not quite sure what to do in this case. Feel free to add a comment to discuss this case in this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions