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.
Currently, we can deactivate
unitOfWorkfor a call on the client :We voluntarily throw an exception on
create,updateanddeletecall to prevent this: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.