mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
ReflectionProperty::getValue(): Argument #1 ($object) must be provided for instance properties #7249
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mostafasy on GitHub (Nov 18, 2023).
Bug Report
I recently updated Doctrine to version 2.17.1 and encountered an error. I'm currently using doctrine/persistence v3.2, and downgrading Doctrine to version 2.16.3 resolved the issue.
ReflectionProperty::getValue(): Argument #1 ($object) must be provided for instance properties
doctrine/persistence/src/Persistence/Reflection/RuntimeReflectionProperty.php
Summary
doctrine v2.17.1 does not working fine with doctrine/persistence v3.2
Current behavior
ReflectionProperty::getValue(): Argument #1 ($object) must be provided for instance properties
How to reproduce
the object is empty but when i downgrad the doctrine version...it works fine..
Expected behavior
that everthing work as usaul ...what is the changes in this version that my app not working and get this error? any ideas ?
schema is also valid!
@greg0ire commented on GitHub (Nov 18, 2023):
Please provide a stack trace.
@mostafasy commented on GitHub (Nov 19, 2023):
Thank fpr reply,,,here is a stack trace and with Doctrine version 2.16.3 works fine ..the error occurs only with v 2.17.1, 2.17.0 ...
ps: i am using php 8.2
@greg0ire commented on GitHub (Nov 19, 2023):
There is a call to
egaerLoadCollectionsin the stack trace. That method was introduced in https://github.com/doctrine/orm/pull/8391@beberlei , can you please take a look at this?
@JonasKraska commented on GitHub (Nov 23, 2023):
Not too sure if it fits the same issue, but i might have a problem in the same area. Having an eager loaded many to one relation via an
UuidV7returns an empty collection always. The\Doctrine\DBAL\Logging\DebugStackreveals:@greg0ire commented on GitHub (Nov 23, 2023):
An SQL debug stack and a PHP stack trace are 2 different things. How does the
DebugStackhelp here?@rik702 commented on GitHub (Nov 27, 2023):
I'm getting the same problem on 2.17.x with a OneToMany indexed by a Symfony Uid.
Problem goes away after removing all the applicable fetch:'EAGER' for the trx.
also see #11088