dddshelf / ddd-in-php-book-issues

Leave your comments, improvements or book mistakes as an issue! Thanks ❤️
https://leanpub.com/ddd-in-php
28 stars 2 forks source link

Multiple typos in paragraph from the Repositories section #86

Closed marcverney closed 6 years ago

marcverney commented 6 years ago

At the end of the Persistence-oriented Repositories chapter, there's the following paragraph:

When using an ORM, save method is simpler because the ORM takes care about to know if the Entity is new or an existing one. If you decide to go without ORM, it is your responsibility to check if the Entity already exists. Another option is to segregate your PostRepository interface with an insert and update method. Implementations that do not depend on , such RedisPostRepository can perform the same operation in insert and update. However, we recommend you to push for the save approach that leaks no implementations details to the business logic.

Errors:

keyvanakbary commented 6 years ago

💥 Fixed and live. Thanks for your contribution, again 😊 🙌