Skip to content

Using ArrayAccess on JoinColumnMapping is deprecated. #6972

@jannes-io

Description

@jannes-io

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions