mixed pq\Gateway\Table::of(pq\Gateway\Row $foreign[, string $ref = NULL[, string $order = NULL[, int $limit = 0[, int $offset = 0]]]])

Find rows in table by foreign key. See pq\Gateway\Table::find(), pq\Gateway\Table::by() and pq\Gateway\Row::allOf().

Params:

Returns:

Example:


<?php

use pq\Gateway\Table;

$accounts = new Table("account");
$account $accounts->find(["id=" => 1])->current();

$account_emails = new Table("account_emails");
$emails $account_emails->of($account);

?>