As the title suggests; I try to retrive the relationship that account have to itself.
I have done this using the API (Accounts/link/members) but now I want to do this by using Beans.
So, how should I proceed? I've tried the following without success:
$seed = new Account();
$seed->retrieve('41d7745e-63aa-11e6-8383-005056add87a');
$seed->load_relationship('accounts');
$list = array();
foreach ($seed->accounts->getBeans() as $contact) {
$list[$contact->id] = $contact;
}
return $list;
Regards
Erik