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

Entity Manager #9

Closed
tsutomi opened this issue Oct 7, 2023 · 0 comments · Fixed by #11
Closed

Entity Manager #9

tsutomi opened this issue Oct 7, 2023 · 0 comments · Fixed by #11
Assignees
Labels
enhancement New feature or request manager Issues related to the Entity Manager

Comments

@tsutomi
Copy link
Member

tsutomi commented Oct 7, 2023

The Repository pattern provides several functions to access data sources, but it doesn't provide added value for the validation and management of those data.
For instance, a Repository doesn't check if an entity exists before adding it to the database, and if this happens an exception denoting conflict will be raised.

The scope of an Entity Manager is to provide a service that would operate some validations and checks before writing operations, ensuring the consistency of data, without throwing an exception, but instead returning an object describing the state of the operation (eg. Success, Failure, Unchanged, etc.).

@tsutomi tsutomi added enhancement New feature or request manager Issues related to the Entity Manager labels Oct 7, 2023
@tsutomi tsutomi self-assigned this Oct 7, 2023
@tsutomi tsutomi linked a pull request Oct 9, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request manager Issues related to the Entity Manager
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant