CityWebConsultants / Iris

Modular content management and web application framework built with Node.js and MongoDB
http://irisjs.org
Other
9 stars 7 forks source link

Allow hook_entity_fetch to use context object for persistent query object #329

Closed FilipNest closed 8 years ago

FilipNest commented 8 years ago

Data object should be for the result of the query, not the query itself. That should be stored in context. That way it is available to all hooks in the chain. Should do this with other hooks as well, slowly moving over the initial hook call to use the context parameter rather than the data one.

This patch allows both methods for backwards compatibility.