Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

withCount columns should not be included in the cloning by default #16

Open
denitsa-md opened this issue Dec 3, 2018 · 0 comments
Open

Comments

@denitsa-md
Copy link
Contributor

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.

@denitsa-md 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant