You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a model is loaded through a HasManyThrough relation, it contains the laravel_through_key attribute. When I then use ->replicate() on that model, the replication also contains the laravel_through_key. This leads to me not being able to save the replication, unless I manually remove the laravel_through_key.
Laravel Version
11.4.0
PHP Version
8.3.6
Database Driver & Version
SQLite 3.45.3
Description
When a model is loaded through a
HasManyThrough
relation, it contains thelaravel_through_key
attribute. When I then use->replicate()
on that model, the replication also contains thelaravel_through_key
. This leads to me not being able to save the replication, unless I manually remove thelaravel_through_key
.Steps To Reproduce
Here's a failing test in a reproducer repository:
This gives the error message:
The text was updated successfully, but these errors were encountered: