Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inconsistency beetwen call with get and getOneBy #35

Open
robotccm opened this issue Jul 11, 2017 · 0 comments
Open

inconsistency beetwen call with get and getOneBy #35

robotccm opened this issue Jul 11, 2017 · 0 comments
Labels
bug Something isn't working major

Comments

@robotccm
Copy link

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.

@robotccm robotccm added major bug Something isn't working labels Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant