-
-
Notifications
You must be signed in to change notification settings - Fork 954
Closed
Labels
Description
API Platform version(s) affected: 4.0.10
Description
Collection operations throw indirect deprecations caused by ApiPlatform's EagerLoadingExtension.
Using ArrayAccess on Doctrine\ORM\Mapping\JoinColumnMapping is deprecated and will not be possible in Doctrine ORM 4.0. Use the corresponding property instead. (ArrayAccessImplementation.php:18 called by EagerLoadingExtension.php:184, https://github.com/doctrine/orm/pull/11211, package doctrine/orm)
How to reproduce
Do a get collection operation on a doctrine entity that has a many-to-x relationship.
Possible Solution
Like the deprecation suggests, use the properties instead of array access.
Additional Context
I don't know in which version the properties were added, we need to check if the properties already exist in the minimum support version of doctrine.
erkia