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().
string $ref# = NULLstring $order# = NULLint $limit# = 0int $offset# = 0
<?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);
?>