Indirect modification of overloaded property has no effect #50572
Replies: 2 comments
-
any example code on how we can reproduce this will be highly appreciated. |
Beta Was this translation helpful? Give feedback.
-
Please find below the code snippets In Activity.php model I have below 1-to-1 relationship public function activity_pattern(){ In Routine.php model I have below relationship public function activities_with_sorting(){ in controller I have below code: $routines = Routine::with('activities_with_sorting.activity_pattern') foreach ($routines->activities_with_sorting as $activity){ $customPattern = RoutineActivity::where('routine_id','=',$routineId) $dayOne = ($customPattern->day_one !=null) ? $customPattern->day_one : $activity->activity_pattern->day_one; $activity->activity_pattern->day_one = $dayOne; } Further, I have tried to downgrade the laravel version from v10.48.2 to v10.45.1 but still get same issue. Thank you Thank you |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting an error "Indirect modification of overloaded property has no effect" in laravel v10.48.2, but same code is working fine in v10.45.1. Any idea what is the issue? tried to check respective release logs, but can not find anything.
Urgent help with this issue will be highly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions