Most records in 1CRM have other related recors linked to them. For example, Contact can have a number of related accounts. To fetch a list of related records, use the Model::getRelated() method. It returns an instance of ListResult class.
$model = $client->model('Contact');
$result = $model->getRelated('7eba2a01-6cb6-f38c-d4c2-5a8fc2def9d2', 'accounts' [], 0, 2);
echo $result->totalResults(), "\n";
echo json_encode($result->getRecords(), JSON_PRETTY_PRINT);
5 "balance_payable": "0",
8 "purchase_credit_limit": null,
10 "id": "80ed9241-3612-f3cd-ee4d-5a8fc236c860",
11 "credit_limit_usd": null,
12 "currency": "US Dollar: $",
14 "purchase_credit_limit_usd": null,
15 "name": "360 Vacations",
16 "_display": "360 Vacations"
20 "balance_payable": "0",
23 "purchase_credit_limit": null,
25 "id": "94b8157d-aff9-023f-3745-5a8fc278192f",
26 "credit_limit_usd": null,
27 "currency": "US Dollar: $",
29 "purchase_credit_limit_usd": null,
30 "name": "ABC FUEL CO",
31 "_display": "ABC FUEL CO"
Model::getRelated() accepts same options as Model::getList() - see Retrieving list of records