-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
queryBuilder.getOneOrFail #6246
Labels
Comments
This seems like a good idea! I'll take a look :D |
imnotjames
added a commit
to imnotjames/typeorm
that referenced
this issue
Oct 10, 2020
This adds a `getOneOrFail` which which is to `getOne` as `findOneOrFail` is to `findOne` - it never returns `undefined`, it will instead throw an `EntityNotFoundError` closes typeorm#6246
imnotjames
added a commit
to imnotjames/typeorm
that referenced
this issue
Oct 10, 2020
This adds a `getOneOrFail` which which is to `getOne` as `findOneOrFail` is to `findOne` - it never returns `undefined`, it will instead throw an `EntityNotFoundError` closes typeorm#6246
PR ready to go. :) Waiting on tests. |
imnotjames
added a commit
to imnotjames/typeorm
that referenced
this issue
Oct 11, 2020
This adds a `getOneOrFail` which which is to `getOne` as `findOneOrFail` is to `findOne` - it never returns `undefined`, it will instead throw an `EntityNotFoundError` closes typeorm#6246
imnotjames
added a commit
to imnotjames/typeorm
that referenced
this issue
Oct 11, 2020
This adds a `getOneOrFail` which which is to `getOne` as `findOneOrFail` is to `findOne` - it never returns `undefined`, it will instead throw an `EntityNotFoundError` closes typeorm#6246
imnotjames
added a commit
that referenced
this issue
Oct 16, 2020
This adds a `getOneOrFail` which which is to `getOne` as `findOneOrFail` is to `findOne` - it never returns `undefined`, it will instead throw an `EntityNotFoundError` closes #6246
zaro
pushed a commit
to zaro/typeorm
that referenced
this issue
Jan 12, 2021
This adds a `getOneOrFail` which which is to `getOne` as `findOneOrFail` is to `findOne` - it never returns `undefined`, it will instead throw an `EntityNotFoundError` closes typeorm#6246
How come this got closed? I'd love to see this added ❤️ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue type:
[ ] question
[ ] bug report
[x] feature request
[ ] documentation issue
TypeORM version:
Steps to reproduce or a small repository showing the problem:
I just want to be able to write
so my more complex query can behave the same way with the same exception type as a simpler query.
The text was updated successfully, but these errors were encountered: