Problems when using each () in yii join table query

the program uses the linked table to get all the field values of the associated table, and uses each () to generate the generator. Each time the value obtained in the loop contains only the data of the main table but not the data of the associated table, and then adding asArray (), before the each () can get all the values. Would you like to ask the reason why these two cases get different values?

Aug.03,2021
Menu