Welcome Guest, Not a member yet? Register   Sign In
combining multiple activerecord queries
#2

[eluser]danmontgomery[/eluser]
Code:
$this->db->select("folders.some_field, files.some_other_field")->join("files", "files.folder_id = folders.id")->where("folders.id", $folder_id)->get("folders");


Messages In This Thread
combining multiple activerecord queries - by El Forum - 01-21-2010, 04:33 PM
combining multiple activerecord queries - by El Forum - 01-21-2010, 04:36 PM
combining multiple activerecord queries - by El Forum - 01-23-2010, 05:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB