How to use "where user_id in (subquery)" in yii2

Hi everyone

i have a situation where i have to write multiple queries in a query

so i wants to know how can we use where user_id in (select if from user where user_id=1) type of query in yii2??

Hi,

I suggest you read:

http://www.yiiframework.com/doc-2.0/guide-db-active-record.html

And:

http://www.yiiframework.com/doc-2.0/guide-db-query-builder.html

Regards