Do laravel-mongodb have to overwrite $resolver in Jenssegers/Mongodb/Model.php ?
When I use Eloqent as standalone ORM (without Laravel), this attribute makes problems.
$capsule = new Illuminate\Database\Capsule\Manager();
$manager = $capsule->getDatabaseManager();
$manager->extend('mongodb', function ($config) {
return new Jenssegers\Mongodb\Connection($config);
});
$capsule->addConnection($connectionParameters);
$capsule->setAsGlobal();
$capsule->bootEloquent();
problem is with static methods like Model::find(X). This methods call new static instance. And now, when Eloquent model have this static $resolver, variable is overwritten in new instance by laravel-mongodb model with empty $resolver.
Hello,
Do laravel-mongodb have to overwrite
$resolver
inJenssegers/Mongodb/Model.php
? When I use Eloqent as standalone ORM (without Laravel), this attribute makes problems.problem is with static methods like
Model::find(X)
. This methods callnew static
instance. And now, when Eloquent model have thisstatic $resolver
, variable is overwritten in new instance by laravel-mongodb model with empty$resolver
.illuminate/database: 5.0.4 jenssegers/mongodb: dev-master
Thank in advance for help