Shouldn’t the returned data be an array? Why is it the object of Student again?
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
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.
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
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.