Reputation: 1157
I want to find an entity by an unique (in this example the email) field.
User
id (int, pk)
email (string, not null, unique)
password (string, not null)
I know that there is findBy
for repositories but since the email field is unique I don't want to use a repository as there always will be only one result.
Is this possible?
Upvotes: 1
Views: 245