You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to have an configuration array for each model extended from Jenssegers\Mongodb\Eloquent\Model to have an ability to somehow say if I need an ObjectId or a string format of foreign key, e.g.
Is your feature request related to a problem?
I have an 1-to-1 relation for 2 tables with foreign key saved as
ObjectId
:Sales:
Users:
Relation is defined on Sales model as follows:
When I'm trying to apply whereHas condition:
it returns no results for relation fetching query (from laravel debugger):
while Sale document with such idUser does exist.
Describe the solution you'd like
I'd like to have an configuration array for each model extended from
Jenssegers\Mongodb\Eloquent\Model
to have an ability to somehow say if I need anObjectId
or astring
format of foreign key, e.g.which should be applied to
Jenssegers\Mongodb\Helpers\QueriesRelationships::getConstrainedRelatedIds()
methodThe text was updated successfully, but these errors were encountered: