Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

I've had this same issue. Seems there is something up with jessengers laravel package. Anything nested/embeded becomes hard to retrieve. For me the issue has been specifically when I use the embedsmany relationship I can't query against it.

For instance - this hangs for me. and it straight out of the docs: https://github.com/jenssegers/laravel-mongodb#embedsmany-relations

use Jenssegers\Mongodb\Model as Eloquent;

class User extends Eloquent {

public function books()
{
    return $this->embedsMany('Book');
}

}

$books = User::first()->books;

no luck. It just hangs.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

tandasima tandasima Joined 12 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.