CodeIgniter Forums
GAS ORM Cache? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: GAS ORM Cache? (/thread-58661.html)



GAS ORM Cache? - El Forum - 07-04-2013

[eluser]jon74[/eluser]
Hi All,

I've been using GAS ORM now for a little while and it's great, but I've hit two issues I'd greatly appreciate any steer on...

If I make changes to my tables, i.e. insert a column, I also modify the relevant ORM object to reflect that new column, however, whenever I release these changes to one of my environment the ORM object throws an error saying 'unknown column' the column is in the ORM Model and it's in the database... ? I have GAS Caching disabled in the config, and I'm not using Migrations...

The second problem, is that count_all_results seems to ignore where clauses? As apposed to the Native CI AR which works fine.

Thanks!




GAS ORM Cache? - El Forum - 07-04-2013

[eluser]jon74[/eluser]
After 5 minutes the column error resolved itself, but I need to find a way to ensure that doesn't happen when releasing updates? Is there a way to flush the cache or prevent this?

Thanks!


GAS ORM Cache? - El Forum - 07-09-2013

[eluser]jon74[/eluser]
Hi All,

I've had a dig through the code but I can't see why GAS ORM would cache (when disabled) and find a way to ensure it doesn't throw an error when a change is promoted to the DB and Model to introduce (or remove) a column?

Thanks again