Welcome Guest, Not a member yet? Register   Sign In
Active Record method chaining - doesn't work with update?
#6

(02-25-2015, 12:32 PM)CroNiX Wrote: update() and insert(), and probably a few others, execute the compiled query at that point. So you need to have all of your wheres/selects/etc before calling those action methods.

This is the problem with "thin documentation" in the chaining. The example shows select()->where(), so the logical extension would be update()->where(). Now I have this info, I can use this properly.

Thanks for your help guys, I will certainly come here before SO now because I have no response in 20-odd hours over there. Pretty rare to stump the Stack crowd.

Cheers,

whiteatom
Reply


Messages In This Thread
RE: Active Record method chaining - doesn't work with update? - by whiteatom - 02-25-2015, 01:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB