-
Notifications
You must be signed in to change notification settings - Fork 1.4k
HasMany relationship not working #68
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
Comments
I did not test the methods you are using. I tested relations with the more manual approach by passing id's: https://github.com/jenssegers/Laravel-MongoDB/blob/master/tests/RelationsTest.php I will try to find out why |
I added your way of saving models to the tests and did not encounter any problems: https://github.com/jenssegers/Laravel-MongoDB/blob/master/tests/RelationsTest.php#L105 |
This might a compatibility issue with this bundle https://github.com/creolab/laravel-modules?source=cc My current code looks something like this
Container class
Entity class
So I do see the container id being added to the entity model, but when I try to retrieve the items nothing comes back. |
Closing this ticket, I was incorrectly calling
This works:
|
I'm trying to get a one to many relationship working. I tried doing a couple of things:
Please advice.
The text was updated successfully, but these errors were encountered: