Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

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

Open
ev22box opened this issue Jun 18, 2014 · 2 comments

Comments

@ev22box
Copy link

ev22box commented Jun 18, 2014

    $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)

@danielvduque
Copy link

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

@irwinai
Copy link

irwinai commented Mar 13, 2015

'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] =>
)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants