AnsweredAssumed Answered

How do I retrive the member accounts relationship with Bean?

Question asked by Erik Hallin on Sep 12, 2016
Latest reply on Sep 12, 2016 by Erik Hallin

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();

$list = array();
foreach ($seed->accounts->getBeans() as $contact) {
    $list[$contact->id] = $contact;

return $list;