CodeIgniter Forums
What happened to Active Record ar_select? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: What happened to Active Record ar_select? (/showthread.php?tid=67337)



What happened to Active Record ar_select? - dcheslow - 02-11-2017

Hello;

I am upgrading a site from CI 2.0 to CI 3.1.3 and have come upon some code that accesses the CI AR internals called ar_select, ar_from, ar_join etc.  These seem to be completely gone in CI 3.  Does anyone know of a way to simulate them?  I know that I can use the (new) get_compiled_query() and then parse the SQL but I am hoping there is an easier way.

Thanks in advance,
=dave=


RE: What happened to Active Record ar_select? - ciadmin - 02-11-2017

https://www.codeigniter.com/user_guide/installation/upgrade_300.html?highlight=active%20record#step-7-update-your-config-database-php