Skip to content

Prevent cloning generator when instanciating previous_data #2990

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

Merged
merged 1 commit into from
Aug 19, 2019

Conversation

nitneuk
Copy link
Contributor

@nitneuk nitneuk commented Aug 19, 2019

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR api-platform/docs#858

Add a clone trait with a method clone that returns a clone of the given variable if cloneable.
Inspired by @alanpoulain from #2978

@nitneuk nitneuk force-pushed the fix-previous_data branch from f640dab to 51997f6 Compare August 19, 2019 15:22
@dunglas dunglas merged commit ee4bf84 into api-platform:2.4 Aug 19, 2019
@dunglas
Copy link
Member

dunglas commented Aug 19, 2019

Thanks @Nitneuk2

@alanpoulain
Copy link
Member

Shouldn't the ItemResolver use the trait too?

@dunglas
Copy link
Member

dunglas commented Aug 19, 2019

good catch

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

Successfully merging this pull request may close these issues.

4 participants