Open paaneko opened 4 months ago
We can add a new method to the repository for removing multiple entities simultaneously. For instance, we can introduce a removeBatch method that accepts an array or collection of users
I believe it's best to encapsulate data manipulation logic within the persistence layer and repository classes. This approach helps us adhere to the SOLID principles
Indeed, good approach. Didn't even think
Example
DeleteUserHandler
UserRepository
This change should improve experience with the doctrine
Unit of Work
, when we want to persist multiple entities at the same time.