Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Fix call stack when a Doctrine proxy subclass is active #9

Merged
merged 2 commits into from Feb 6, 2017
Merged

Fix call stack when a Doctrine proxy subclass is active #9

merged 2 commits into from Feb 6, 2017

Conversation

niels-nijens
Copy link
Contributor

@niels-nijens niels-nijens commented Feb 6, 2017

Doctrine proxy classes change the call stack due to also overloading the aliased trait methods.

This changes the stack to:
setSomefileUpload -> setFileUpload -> getFileUploadPropertyName

Where it normally would be:
setSomefileUpload -> getFileUploadPropertyName

This PR fixes the difference, which makes sure that the file upload property name can be determined both with a 'normal' Doctrine entity class and a Doctrine proxy class.

Already tested and implemented in FlexModel/FlexModelBundle#57 and FlexModel/FlexModelBundle#58.

@niels-nijens niels-nijens merged commit 8d5a37e into Harborn-digital:master Feb 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants