Skip to content

Conflicts in query/fields names are not handled #175

@moufmouf

Description

@moufmouf

This code is currently valid:

    /**
     * @Query(name="getProduct")
     */
    public function getProduct(): SpecialProduct
    {
        return new SpecialProduct('Special box', 10.99);
    }

    /**
     * @Query(name="getProduct")
     */
    public function getProducts2(): ArrayIterator
    {
        return new ArrayIterator([new SpecialProduct('Special box', 10.99), new SpecialProduct('Special box', 10.99)]);
    }

Note: how the "name" attribute is used to pass the same query name twice.
This should throw an exception.

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