$user = Model_User::query()->related('user_items')->related('user_items.items')->get_one(); $user->user_items; // holds all the in-between objects // to get all items $items = array(); foreach ($user->user_items as $ui) { $items[] = $ui->item; }
It looks like you're new here. If you want to get involved, click one of these buttons!