Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Upgrade command does not remove #[ApiSubresource] #5038

@BeyerJC

Description

@BeyerJC

API Platform version(s) affected: 2.7.1

Description
Maybe this is intened but after running the upgrade command, a new ApiResource was added in my related entity class but the #[ApiSubresource] attribute was not removed.

How to reproduce
Create two related entities, add #[ApiSubresource] attribute and run the upgrade command.

Possible Solution
If this is not intended the command should remove the attribute after creating the new GetCollection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions