In my controller for example if I dump the following:
var_dump($user->usersAttributes->toArray());
I get:
array (size=3)
0 =>
array (size=4)
'id' => string '1' (length=1)
'userId' => string '1' (length=1)
'attributeId' => string '1' (length=1)
'attributeValue' => string '/profile/83/jocelyn.jpg' (length=23)
If I do
var_dump($user->attributes->toArray());
If get:
array (size=3)
0 =>
array (size=3)
'id' => string '1' (length=1)
'name' => string 'profileImage' (length=12)
'defaultValue' => string '/profile/placeholder.jpg' (length=24)
So I can do {{ user.attributes.profileImage }} but I get undefined property exception but If i do say {{ user.attributes.name }} I get "profileImage" returned which isn't exactly what I want, question is I guess, am i missing something and shoudl the attribute anem get mapped to the value in the usersAttributes or do I have to get the value another way by say manually mapping them and setting a view property?