hpaul / mongor

Mongo ORM support for Laravel 3 bundle
23 stars 11 forks source link

couldn't determine master #3

Open priyolahiri opened 12 years ago

priyolahiri commented 12 years ago

this is what I get after following all the instructions when I do a $user->get(array("codition"=>"something")) where user is my model:

Unhandled Exception

Message:

couldn't determine master

Location:

/mnt/www/jscore_latest/bundles/mongor/hydrator.php on line 29

Stack Trace:

#0 /mnt/www/jscore_latest/bundles/mongor/hydrator.php(29): MongoCursor->rewind()
#1 /mnt/www/jscore_latest/bundles/mongor/hydrator.php(7): Mongor\Hydrator::base('User', Object(MongoCursor))
#2 /mnt/www/jscore_latest/bundles/mongor/model.php(238): Mongor\Hydrator::hydrate(Object(User), Object(MongoCursor))
#3 [internal function]: Mongor\Model->_get(Array)
#4 /mnt/www/jscore_latest/bundles/mongor/model.php(412): call_user_func_array(Array, Array)
#5 /mnt/www/jscore_latest/application/routes.php(40): Mongor\Model->__call('get', Array)
#6 /mnt/www/jscore_latest/application/routes.php(40): User->get(Array)
#7 [internal function]: {closure}()
#8 /mnt/www/jscore_latest/laravel/routing/route.php(163): call_user_func_array(Object(Closure), Array)
#9 /mnt/www/jscore_latest/laravel/routing/route.php(124): Laravel\Routing\Route->response()
#10 /mnt/www/jscore_latest/laravel/laravel.php(125): Laravel\Routing\Route->call()
#11 /mnt/www/jscore_latest/public/index.php(34): require('/mnt/www/jscore...')
#12 {main}
tobsn commented 12 years ago

some more infos? code snippet for reproduction? :)

hpaul commented 12 years ago

I don't know from where come the problem but the error is from MongoConnection.

http://php.net/manual/en/class.mongoconnectionexception.php

jcldavid commented 12 years ago

Comment this line in your config:


    'replicaSet' => '',
lslucas commented 11 years ago
Comment this line in your config:

    'replicaSet' => '',

Work with me, thanks Apathetic012