i guess this was the wrong way to access the data of peopleid through the user object
well i use a friendslists controller now that 'hasMany ’ friends… its much better like that because i just had to bake them including templates etc…
but i hope soon i will find out about how to use this stuff :
$this->belongsToMany(‘Friends’, [
‘className’ => ‘Users’,
‘joinTable’ => ‘peoples’,
‘foreignKey’ => ‘user_id’,
‘targetForeignKey’ => ‘peopleid’,
]);
propably i will need it on some other point…