如何添加帶有 where 條件的 orderBy()?$floor_data = Floors::find()->where(['building_id' => $id])->orderBy->(['floor_no' => SORT_DESC])->all();這給了我一個(gè)語(yǔ)法錯(cuò)誤說(shuō)語(yǔ)法錯(cuò)誤,意外的 '(',需要標(biāo)識(shí)符 (T_STRING) 或變量 (T_VARIABLE) 或 '{' 或 '$'
如何在 Find() 的 where() 中添加 orderBy()?
桃花長(zhǎng)相依
2022-07-09 18:05:57