Assuming that your models are named BaseTwitter
and BaseFollower
accordingly, this should work:
$subQuery = BaseFollower::find()->select('id');
$query = BaseTwitter::find()->where(['not in', 'id', $subQuery]);
$models = $query->all();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…