well. Write programs to work together. Write programs to handle text streams, because that is a universal interface. Doug McIlroy, inventor of the Unix pipe
} interface ArticleRepositoryInterface { public function add(ArticleInterface $article); public function getActive(); } class Article implements ArticleInterface { // Don't make me dumb... } Pure Object (Not a Cake\Entity)
{ public function initialize(array $config) { $this->entityClass(Article::class); } public function add(ArticleInterface $article) { } public function getActive() { return $this->find()->where(['active' => 1]); } }