![]() |
Reset active record stack - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Reset active record stack (/showthread.php?tid=51170) |
Reset active record stack - El Forum - 04-23-2012 [eluser]moodh[/eluser] Hi! Since someone thought of the very great idea of making _compile_select() and _reset_run() protected I can't access those methods from my models without hacking the system files. I do not want to finish the active record stack because of cache layers running after the active record functions and before the get() parts, which means my consecutive queries gets some extra code they shouldn't get. So my question is, what is the simplest way to reset an active record stack I do not want to execute the entire query? Having to run a query to reset the active record stack seems very stupid as the result itself is already retrieved from memcached. I *really* don't want to change protected to public (as it was before, by the way) on _compile_select() and/or _reset_run(). Thank you! Reset active record stack - El Forum - 04-23-2012 [eluser]Aken[/eluser] If you don't want to modify core files, you can extend the Loader class to search for an extended DB driver (like extending a library, using MY_). Check out this wiki page. |