• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reset active record stack

#1
[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!

#2
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.