_Originally posted by @bajtos in https://github.com/strongloop/loopback-next/pull/2005/files#r237517294
HasOneRepository and HasManyRepository don't have direct access to the foreign key value to throw meaningful errors (e.g. EntityNotFoundError) with it. Currently get() and find() for these repositories could benefit from having access to it, but there are other methods as well.
_Originally posted by @bajtos in https://github.com/strongloop/loopback-next/pull/2005/files#r237517294
HasOneRepositoryandHasManyRepositorydon't have direct access to the foreign key value to throw meaningful errors (e.g.EntityNotFoundError) with it. Currentlyget()andfind()for these repositories could benefit from having access to it, but there are other methods as well.