YiiMongoDbSuite icon indicating copy to clipboard operation
YiiMongoDbSuite copied to clipboard

MongoCollection::insert(): The 'safe' option is deprecated, please use 'w' instead

Open ev22box opened this issue 10 years ago • 2 comments

    $model = new User;
    $model->email = 'email';
    $model->password = 'password';
    if(!$model->save())
        print_r($model->getErrors());

MongoCollection::insert(): The 'safe' option is deprecated, please use 'w' instead

/home/jeka/sites/test.loc/www/protected/extensions/YiiMongoDbSuite/EMongoDocument.php(614)

ev22box avatar Jun 18 '14 13:06 ev22box

I am getting this message. Still don't know how to fix it

danielvduque avatar Dec 08 '14 21:12 danielvduque

'fsync' => $this->getFsyncFlag() === true ? 1 : 0, 'w' => $this->getSafeFlag() === true ? 1 : 0 when i do this,there is no exception,but database no result result: Array ( [ok] => 1 [n] => 0 [err] => [errmsg] => )

irwinai avatar Mar 13 '15 05:03 irwinai