Welcome Guest, Not a member yet? Register   Sign In
ActiveRecord for CodeIgniter: Rails-style model interactions
#65

[eluser]Andre83[/eluser]
@frith:

If you use the trick I've suggested in the 6th page of this thread, you could write:
Code:
$book->fetch_related_authors();
where $book *is* actually a model, so you could access the book's authors with this:
Code:
foreach( $book->authors as $author) ...


Messages In This Thread
ActiveRecord for CodeIgniter: Rails-style model interactions - by El Forum - 11-15-2007, 12:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB