Shouldn't the returned data be an array? Why is it the Student object again?
酷酷的人
酷酷的人 2018-10-28 09:37:35
0
2
1325

Shouldn’t the returned data be an array? Why is it the object of Student again?

酷酷的人
酷酷的人

reply all(2)
乘风破浪

If it is a normal query, for example, the access result of Db::table('Student') returns a non-object array, while querying through a template returns an object array

A小卒过河

Isn’t an array an object? Student::field(...)->find() is used, so it must be the object of Student, and it inherits the parent class Model.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template