Support the ongoing development of Laravel.io →
Panda Gm

Panda Gm

Joined 26 Jul 2017

Statistics

Threads 2
Replies 3
Solutions 0
Articles 0
posted 6 years ago

save() does not update all fields

I have a table that behaves fine with read/insert. However on update it only updates a few fields an...

0 Likes
2 Replies
posted 7 years ago

Eloquent object save() updates multiple records

Hello, I'm fetching a specific record with a DB table using MyTable::where(['type' => $sometype])...

0 Likes
4 Replies
replied 6 years ago

save() does not update all fields

Thanks for the idea. Will try. If I replace save() with direct update through DB::update() it works...

0 Likes
replied 7 years ago

Eloquent object save() updates multiple records

Yes, that was the problem. I had made the id to be the PK in the Model and it has started working co...

0 Likes
replied 7 years ago

Eloquent object save() updates multiple records

Model: class MonthlyUpdateStatus extends Model { protected $table = 'monthly_update_status'; protect...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.