Skip to content

relations failed when the foreign key of type ObjectId #350

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

Closed
YSimple opened this issue Oct 30, 2014 · 3 comments
Closed

relations failed when the foreign key of type ObjectId #350

YSimple opened this issue Oct 30, 2014 · 3 comments

Comments

@YSimple
Copy link

YSimple commented Oct 30, 2014

Hello,

i have an issue when i add any relations such as hasMany and the refrences already of type ObjectId the query return null but when i change the foreign key to string it worked out

any suggestions or other way to solve this ??

@kisuka
Copy link

kisuka commented Mar 13, 2015

I have the same issue.

@jenssegers
Copy link
Contributor

The current implementation uses strings rather than MongoId's for relations due to some complications with the original Eloquent code. This is something on the todo list.

@rohitkhatri
Copy link

Any fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants