Skip to content

ArrayAccess not available in Paris #135

@corbinjurgens

Description

@corbinjurgens

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions