[eluser]TheJim[/eluser]
Oh, and you wanted to link them:
Code:
$place->where_in_related('buyer', 'id', $ids)->include_related('buyer', 'id')->get(); // or get_iterated if suitable
foreach ($place as $p)
{
$b = $buyers->all[$p->buyer_id];
...
}
That would be one way to link if your configuration is set up to index the $all array by ID. That has consequences with getting multiple records in queries, so you might want to just make a simple reference map yourself when you're getting the IDs (or only doing the map and using array_keys, or whatever):