In an action, I have a call to a method in a model which effects a LOT of related fields across 5 tables. Now I need to clear the cache of the ORM and make a fresh query to retrieve a simpler object ..which I can then json_encode(after a to_array) and send to the client. (current query's result includes the previously cached relations which results in a object so big that it can't be json encoded .. server runs out of memory )
Anyone got any idea how i do that
___SOLUTION__ : extend Orm\Model and make methods to clear various cached stuff