Skip to content

BC break in 2.5.8 #3918

@theofidry

Description

@theofidry

Reproducer: https://github.com/theofidry/bug-9283

composer install
docker-compose up -d
bin/console doctrine:migration:migrate --env test
vendor/bin/phpunit

We have been using API-Platform with VOs as entity identifiers. Although the doc generated by API-Platform looks wrong (assumes it's an object):

Screen Shot 2020-12-19 at 14 36 48

It is in practice working fine.

However when it comes to the testing utilities, the ::assertMatchesResource{Item,Collection}JsonSchema() assertions now fail with a message along the lines of:

hydra:member[0].id: Integer value found, but an object is required

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions