I have a mongo collection like image below .

my code is

$model = Model::findFirst();

i can't get data by

echo $model->default_section->name;

but it work for

echo $model->default_section['name'];

collection