Skip to content

Commit

Permalink
Update language in architecture-repositories.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson authored Jul 24, 2024
1 parent 417f3c1 commit 6614a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/documentation/en/architecture-repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A `Repository` provides a public API to interact with an entity. The `Repository

In special cases, you may want to add, edit or delete an object without writing logs, sending emails, or updating the modified date. For example, when importing data. In such cases, you can use the [DAO](./architecture-daos) directly. In all other cases, use the `Repository` class to get, add, edit or delete objects. This will ensure that hooks, email notifications or activity logs are not skipped when an action is taken.

Think of an entity's [DAO](./architecture-daos) as a "dumb" class that only knows how to read and write data for that entity. The `Repository` is a "smart" class that coordinates that entity's relationships with other entities in the application.
An entity's [DAO](./architecture-daos) only knows how to read and write data for that entity. The `Repository` coordinates that entity's relationships with other entities in the application.

Get the `Repository` for an entity from the `Repo` facade.

Expand Down

0 comments on commit 6614a99

Please sign in to comment.