Welcome Guest, Not a member yet? Register   Sign In
Casting in Entity Classes
#3

(This post was last modified: 12-14-2024, 12:19 PM by groovebird.)

Thank you.

The only solution i could solve the problem was a custom cast. Then i used the unserialize function and it is working.

I think i found the reason why it is not working. This is from the ArrayCast Class:

PHP Code:
if ((str_starts_with($value'a:') || str_starts_with($value's:'))) { 

My serialized string of the object starts with O:8:"stdClass"

Maybe in the future there is a feature to use an object as well :-)
Reply


Messages In This Thread
Casting in Entity Classes - by groovebird - 12-14-2024, 05:14 AM
RE: Casting in Entity Classes - by davis.lasis - 12-14-2024, 11:31 AM
RE: Casting in Entity Classes - by groovebird - 12-14-2024, 12:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB