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
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-1e9931c-461bb.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-1e9931c-461bb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?