Skip to content

Comments

Prevent cloning generator when instanciating previous_data#2990

Merged
dunglas merged 1 commit intoapi-platform:2.4from
nitneuk:fix-previous_data
Aug 19, 2019
Merged

Prevent cloning generator when instanciating previous_data#2990
dunglas merged 1 commit intoapi-platform:2.4from
nitneuk:fix-previous_data

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