Using the MongoCake plugin for CakePHP 2.0 - By Jose Lorenzo Rodriguez
Uploaded by CakeFoundation in English
We all know that CakePHP 2.0 is not changing the model layer to return objects instead of arrays and are hap... read more
We all know that CakePHP 2.0 is not changing the model layer to return objects instead of arrays and are happy about it, aren't we. Well, for those who can't wait there's is a new plugin for the next version of the framework that will use MongoDB as its datasource, but modelling objects using the data-mapper pattern. This can look as a very big change in how CakePHP users are used to work, but this plugins aims to wrap the the abstracts in the Doctrine Mongo ODM layer and bring them to the cake world by providing some familiarity layers, yet encouraging user to embrace this new pattern for operating your data. This talk will give a very quick introduction on Mongo and why use it, then a more formal introduction on how Doctrine Mongo ODM works to finally show examples of simple baked applications using this datasource. Other highlights in the talk will be ways for making the data-mapper pattern interoperate with the rest of the CakePHP ecosystem.