Closed Surt closed 11 years ago
Extending ArrayObject
would be the preferable route here I think.
I can kinda see a use for this in Idiorm, but now with the introduction of ::as_array()
, I'm not sure it's necessary. It's less clear to me how this would be useful in Paris.
@tag see https://github.com/j4mie/paris/pull/14 for an example of its use in Paris. In Idiorm I think this would complement as_array
nicely and in v2 probably replace it all together in preference to:
$array = (array) $orm_instance;
ArrayAccess
added for ORM
property access in commit 598927d
Added in commit 5a6d20c
Asking to implement Countable Interface after PHP 7.2
Would be great to implement that interfaces instead the actual set, get. Not instead, I mean "in addition"