Skip to content

Commit

Permalink
Merge pull request #1239 from pkp/devdocs-repos-lang
Browse files Browse the repository at this point in the history
Update language in architecture-repositories.md
  • Loading branch information
kaitlinnewson authored Aug 14, 2024
2 parents 4b7b875 + 6614a99 commit a69f042
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 a69f042

Please sign in to comment.