Repository pattern in Yii 3

Since the AR package is not yet completed for Yii 3, did anyone try to use the repository pattern instead? That is, domain model is separated from the database access layer.

https://martinfowler.com/eaaCatalog/repository.html

Yii3 demo already have some repos: https://github.com/yiisoft/demo/tree/master/src/Blog/Post

1 Like

Aha! Thanks!