Friday, April 3, 2015

CakePHP 3 - Where is custom datasource ?

The custom datasource approach from 2.x had a number of drawbacks and leaky abstractions which we decided we didn't want to bring forward.

The new orm focuses on being really great for sql based datastores, and we felt it would be impossible to provide great sql support and every other kind of datasource. Instead custom datasources that don't use sql should provide an implementation of the RepositoryInterface, a query builder and possible a specialized entity object.

Unfortunately, there aren't many examples of this approach in the wild. There is an incomplete start on an elasticsearch plugin in the cakephp github account but it is nowhere near complete.

-mark

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: