Welcome Guest, Not a member yet? Register   Sign In
How to get table.column in active record queries?
#3

[eluser]Vheissu[/eluser]
I think you are misunderstanding how Active Record queries work. Active Record is merely standard database queries but simplified without having to write tedious SQL clauses and statements. What you are asking to do with Active Record is probably not easily possible unless you're using aliases in your select statement through the use of AS. Even then that doesn't do what you want it to do.

What you are looking for is an ORM which will turn your database tables and fields into objects you can access inside of your controllers. Check out DataMapper Overzealous Edition: http://www.overzealous.com/dmz/index.html - probably the best ORM for Codeigniter.


Messages In This Thread
How to get table.column in active record queries? - by El Forum - 08-24-2010, 06:23 PM
How to get table.column in active record queries? - by El Forum - 08-24-2010, 06:39 PM
How to get table.column in active record queries? - by El Forum - 08-24-2010, 09:47 PM
How to get table.column in active record queries? - by El Forum - 08-25-2010, 12:49 AM
How to get table.column in active record queries? - by El Forum - 08-25-2010, 01:17 AM
How to get table.column in active record queries? - by El Forum - 08-25-2010, 08:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB