How yii2 uses leftjoin to generate on. And query statement

$sql = Wrong::find()->where([
            "t.fdUserID" => 4,
            "t.fdStatus" => 0
        ])->alias("t")->leftJoin(Exercise::tableName()." exercise","exercise.id=t.fdExerciseID",["exercise.fdStatus"=>1]);
print_r($sql->createCommand()->getRawSql());

printed sql statement is

SELECT `t`.* FROM `tbWrong` `t` LEFT JOIN `tbExercise` `exercise` ON exercise.id=t.fdExerciseID WHERE (`t`.`fdUserID`=4) AND (`t`.`fdStatus`=0)

I would like to ask why the exercise.fdStatus=1 condition has not been generated, and how to generate the desired sql statement

SELECT `t`.* FROM `tbWrong` `t` LEFT JOIN `tbExercise` `exercise` ON (exercise.id=t.fdExerciseID AND exercise.fdStatus=1) WHERE (`t`.`fdUserID`=4) AND (`t`.`fdStatus`=0)
Mar.06,2021

Wrong::find()
    ->where([
        't.fdUserID' => 4,
        't.fdStatus' => 0
    ])
    ->alias('t')
    ->leftJoin(
        Exercise::tableName().' exercise',
        'exercise.id=t.fdExerciseID and exercise.fdStatus=1'
    );
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea7936-1e69.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea7936-1e69.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?