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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community