Codeigniter: Combining activeRecord with manual queries?
Posted
by Industrial
on Stack Overflow
See other posts from Stack Overflow
or by Industrial
Published on 2010-06-06T18:10:03Z
Indexed on
2010/06/06
18:12 UTC
Read the original article
Hit count: 365
Hi everybody,
I've though a bit about the activerecord vs. manual queries in Codeigniter. ActiveRecord is awesome when it's all about standard queries and holds development time really low.
However, when there's a need to add some complexity to the queries, the ActiveRecord gets quite complicated to work with. Sub queries or complex joins gives atleast me a lot of headache.
Since the current "$this->db->query" -call immediately executes the set query, it can't be combined with normal activeRecord calls.
So, what can I do to combine the two methods?
Thanks!
© Stack Overflow or respective owner