Welcome Guest, Not a member yet? Register   Sign In
Easy ActiveRecord questions
#2

[eluser]TheFuzzy0ne[/eluser]
As far as I know, one field will overwrite another by the same name. To avoid this, alias your select fields:
Code:
$this->db->select('field1, field2, collection.name AS cname, useraccess.name AS uname');


Messages In This Thread
Easy ActiveRecord questions - by El Forum - 02-19-2009, 04:16 PM
Easy ActiveRecord questions - by El Forum - 02-19-2009, 05:08 PM
Easy ActiveRecord questions - by El Forum - 02-19-2009, 05:11 PM
Easy ActiveRecord questions - by El Forum - 02-19-2009, 10:56 PM
Easy ActiveRecord questions - by El Forum - 02-20-2009, 03:23 AM
Easy ActiveRecord questions - by El Forum - 02-20-2009, 06:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB