1 # mixed pq\Gateway\Table::with(array $relations[, array $where = NULL[, string $order = NULL[, int $limit = 0[, int $offset = 0]]]])
3 Find rows dependent on other rows by foreign keys.
4 See pq\Gateway\Table::of(), pq\Gateway\Table::by() and pq\Gateway\Table::find().
9 list of stdClass instances representing relations to join for the query; see pq\Gateway\Table::getRelations().
10 * Optional array $where = NULL
11 Additional lookup criteria.
12 * Optional string $order = NULL
14 * Optional int $limit = 0
16 * Optional int $offset = 0
21 * a [deferred promise of React/Promise](https://github.com/reactphp/promise#deferred-1), when using pq\Query\AsyncExecutor, the asynchronous executor.
23 * pq\Result, if pq\Result::$status != pq\Result::TUPLES_OK.
24 * pq\Result, if the rowset prototype pq\Gateway\Table::$rowset is empty.
25 * pq\Gateway\Rowset, an instance of the rowset prototype.
33 $emails = new Table("account_email");
34 $accounts = new Table("account");
35 $notifications = new Table("notification");
38 $emails->getRelations("account")->account_email,
39 $notifications->getRelations("email")->notification
42 $bouncers = $accounts->with($relations, ["bounces>" => 3]);