Welcome Guest, Not a member yet? Register   Sign In
Problem with Model()->find() and Model()->findAll()
#15

(05-16-2020, 04:44 AM)Anwar Wrote: Indeed, also in my case, on using:
protected $useSoftDeletes = false;

it worked.

The same thing happened to me, I did not understand what happened, then look at the code and in the direction "system \ Model.php" change the line 369 "$ builder-> where ($ this-> table. '.'. $ this-> deletedField, null); " by $ builder-> where ('('. $ this-> table. '.'. $ this-> deletedField. "is null or". $ this-> table. '.'. $ this-> deletedField. ' = 0) ');


only return results if delete_at column is null by default and change to allow with null and 0
Reply


Messages In This Thread
RE: Problem with Model()->find() and Model()->findAll() - by ledesma90 - 06-14-2020, 02:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB