I noticed that I am unable to access a Paris object as an array, despite it being extended from the ORM class that has array access. Is this intentional or a bug?
In the following case:
$test = Model::factory('t_user')->find_one();
print($test['name']);
I get
Fatal error: Uncaught Error: Cannot use object of type t_user as array in...
However
$test = ORM::for_table('t_user')->find_one();
print($test['name']);
Works as expected.
Thank you.
I noticed that I am unable to access a Paris object as an array, despite it being extended from the ORM class that has array access. Is this intentional or a bug?
In the following case:
I get
Fatal error: Uncaught Error: Cannot use object of type t_user as array in...However
Works as expected.
Thank you.