Problem when using Symfony 4.4.x and Doctrine 2.7.x: Cannot bind closure to scope of internal class ReflectionProperty
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 8.9k
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
When i want to clone a Doctrine entity (containing sub entities), i get the error:
Cannot bind closure to scope of internal class ReflectionProperty
I am not sure, which is the source of the error. Can you tell me, if there are any restrictions, which might cause this error? Any known incompatibilities with Symfony (its container builder) and/or Doctrine? General compatibility seems to be, based on #39 .
Reference to my comment on a (similar?) case in the Symfony issue tracker: https://github.com/symfony/symfony/issues/24178#issuecomment-576686360
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the entity clone with Symfony 4.4.x and Doctrine 2.7.x, then compare the failure with the referenced Symfony issue. Determine whether the ReflectionProperty closure-binding error is caused by DeepCopy or an incompatibility; done means documenting a confirmed restriction or identifying an actionable fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100