Welcome Guest, Not a member yet? Register   Sign In
Active Record order_by with get_where
#3

[eluser]wlvrn[/eluser]
That's what I found out trying to figure out what was going on.

I think it would be beneficial to users if that was in the documentation as I can see that being very confusing to someone not familiar with using AR chaining. It's implied that the order is similar to how you would structure an SQL statement however since it's not specified and any misstep in that regard results in a confusing PHP error to the developer.

Something added to the get_where or the chaining section would clear this confusing up nicely.


Messages In This Thread
Active Record order_by with get_where - by El Forum - 07-23-2010, 06:57 AM
Active Record order_by with get_where - by El Forum - 07-23-2010, 07:10 AM
Active Record order_by with get_where - by El Forum - 07-23-2010, 07:30 AM
Active Record order_by with get_where - by El Forum - 07-23-2010, 08:02 AM
Active Record order_by with get_where - by El Forum - 07-23-2010, 08:06 AM
Active Record order_by with get_where - by El Forum - 07-23-2010, 08:13 AM
Active Record order_by with get_where - by El Forum - 07-23-2010, 09:34 AM
Active Record order_by with get_where - by El Forum - 07-23-2010, 09:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB