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.
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
Keys were column name from database.
When calling a repository with method like getOneBy, you can use an array like
Keys were name given into Metadata description.
I think you can call indifferently get & getOneBy with same parameters when using primary key.