Skip to content

inconsistency beetwen call with get and getOneBy #35

@robotccm

Description

@robotccm

Original report by Nicolas Desaleux (Bitbucket: [Nicolas Desaleux](https://bitbucket.org/Nicolas Desaleux), ).


When calling a repository with method get, you can use an array like

#!php

 ['databaseColumnName1' => 'value1', 'databaseColumnName2' => 'value2'].

Keys were column name from database.

When calling a repository with method like getOneBy, you can use an array like

#!php

 ['propertyName1' => 'value1', 'propertyName2' => 'value2'].

Keys were name given into Metadata description.

I think you can call indifferently get & getOneBy with same parameters when using primary key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmajor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions