Skip to content

How to convert from activequery to json query #358

Open
@donny26utama

Description

@donny26utama

What steps will reproduce the problem?

$book = Book::find()->where(['=', 'status'. 'publish')->rawQuery();

What's expected?

db.getCollection("book").find({
    "status": "publish"
});

What do you get instead?

Additional info

Q A
Yii version 2.0.14
Yii MongoDB version 2.1
MongoDB server version 5.0.6-5
PHP version 7.4
Operating system windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions