CodeIgniter Forums
include_join_fields() not chaining - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: include_join_fields() not chaining (/showthread.php?tid=47381)



include_join_fields() not chaining - El Forum - 12-06-2011

[eluser]tarciozemel[/eluser]
I think I found a bug. Seems like ->include_join_fields() doesn't accept chaining. I have the code:

Code:
$whatever = new Whatever_model();

$whatever
->where_related('x', 'y')
->where('z', 'w')
->include_join_fields()
->get_iterated();

And I haven't the join field included. But, if I make this:

Code:
$whatever = new Whatever_model();
$whatever->include_join_fields();

$whatever
->where_related('x', 'y')
->where('z', 'w')
->get_iterated();

DataMapper brings me the join value.

It's a bug or I miss something? If is a bug, in the 1.8.2 everything about this it's fine?