Welcome Guest, Not a member yet? Register   Sign In
Call to undefined method Builder::affectedRows()
#4

(This post was last modified: 01-04-2020, 05:52 AM by vincent78.)

You're right !

An other solution is :
the method update() should return FALSE if failure and the number of affected rows if success

The signature of the method would be :
public function update($withAffectedRows = FALSE)

It's better with a parameter because we don't always want the number of affected rows and it costs a query ...

My mistake, the method affectedRows() doesn't perform a database query ...
Reply


Messages In This Thread
RE: Call to undefined method Builder::affectedRows() - by vincent78 - 01-04-2020, 05:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB