Welcome Guest, Not a member yet? Register   Sign In
Limiting an update or delete with active record?
#1

[eluser]ryeguy[/eluser]
Is it possible to use ->limit(x) on an update or delete? It doesn't seem to be working. Is there some workaround other than writing the query manually?
#2

[eluser]Jon L[/eluser]
What version of CI are you using? I know for a fact it's supported in SVN
#3

[eluser]Bl4cKWid0w[/eluser]
You could just use where. If you're calling a record by an auto-incremented ID, there should only be one result.
#4

[eluser]LeopoldoVettor[/eluser]
Yes it´s possible, either update or delete methods in ActiveRecord pattern are working on version 1.7.
Enjoy




Theme © iAndrew 2016 - Forum software by © MyBB