We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Does it make sense to user Repository pattern with Phalcon MVC?

Hi all, first question here!

Just starting a Phalcon project and some colleage wants to use a Repository pattern with Phalcon. I can't see the advantage of doing so as in the service layer we can manage Models directly. As I see it, the Repository layer will only redefine methods already implemented by ModelInterface

Is there a good reason for this approach? see you

I use it to have separated the layers and be able to have more organized the code, caches and cache phql

Good luck