Known Bugs
0.2.0
- The SQL messes up when using Has And Belongs To Many relationships in conjunction with CodeIgniter’s Active Record SQL-builder
fix
- The find_by_sql() and find_all_by_sql() produces PHP errors when called
fix
-
IgnitedQuery produces faulty SQL when like() is not called first
Solution: use a later version of IgnitedQuery or use CI’s AR
Fixes for known bugs
0.2.0
Add this code before you load IgnitedRecord:
define(‘IR_USE_IQ’, true);
This tells IgnitedRecord to use IgnitedQuery to build the SQL-query instead.
Replace:
$query = $this→db_query($sql);
With:
$query = $this→db→query($sql);
In igntedrecord.php, in the find_by_sql() and find_all_by_sql() methods.