Problem api access table user oracle 10g

Hi,

i have a little problem, i use:
https://github.com/sirinibin/Yii2-RESTful-API-with-OAuth2?fbclid=IwAR1i5XhcRIov2iT9HPJErVd_FjnYfVoYL5AREOid8QmdDOjmI7K1d-GKMIk

my database is oracle 10G in this project ( attach my table user ) and when i execute:

Yii::$app->user->identity[‘id’]

return null

but on mysql table return the value of id.

Best regardsCattura|526x359

Have you tried accessing it as object instead of as array: Yii::$app->user->identity->id ?