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
I have a column in the withCount property on my model:
protected $withCount = ['publications'];
When I call duplicate, cloner tries to insert that column in the table and naturally throws an sql error.
This is fixed if I add the column to $clone_exempt_attributes.
But those columns should not be included in the cloning by default because they are computed columns.
The text was updated successfully, but these errors were encountered:
denitsa-md
changed the title
withCount columns should not be included in the duplication by default
withCount columns should not be included in the cloning by default
Dec 3, 2018
I have a column in the
withCount
property on my model:protected $withCount = ['publications'];
When I call
duplicate
, cloner tries to insert that column in the table and naturally throws an sql error.This is fixed if I add the column to
$clone_exempt_attributes
.But those columns should not be included in the cloning by default because they are computed columns.
The text was updated successfully, but these errors were encountered: