You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the Result->toAssoc() function returns a single array when the result has 1 row. That is, the array returned is not an array of associative arrays. So it makes it inconsistent when looping over the values. For example.
The behavior of methods such as toAssoc() or toArray() may vary depending on the number of rows returned. Instead, with methods such as asAssoc() or asArray() that only change the data type to be returned; You can use row() or rows() methods.
I noticed that the Result->toAssoc() function returns a single array when the result has 1 row. That is, the array returned is not an array of associative arrays. So it makes it inconsistent when looping over the values. For example.
The text was updated successfully, but these errors were encountered: