Using Find() To Filter Records Based On Many To Many Relation

Hi guys,

I’ve a model A with a many to many relation to Model B

How do I use find function in Yii 2 to filter out Model A which contains Model B with id 1 ?

thanks before