You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think you misunderstand my question, my question is how to get a raw query from ActiveQuery,
if you use a relational database like MySQL when $book = Book::find()->where(['status' => 'publish'])->getRawSql();
you will get SELECT * FROM books WHERE status = 'publish'. So, when I use NoSQL like MongoDB, my expectation is something like db.getCollection("book").find({ "status": "publish" }); or only JSON {"status": "publish"}
I will be appreciate you to add this feature
Sometimes it is great to check native query in db client and make sure that your query is correct
Thanks 👍
What steps will reproduce the problem?
What's expected?
What do you get instead?
Additional info
The text was updated successfully, but these errors were encountered: