1 # stdClass pq\Gateway\Table\Relations::getReference(string $to)
3 Retrieve the foreign key of the table to another table.
8 The table name referenced by a foreign key of the table.
12 * stdClass, the table relation.
13 * NULL, if the tables are not related.
21 $email = new Table("account_email");
22 $relation = new Table\Relations($email);
23 $account = $relation->getReference("account");
31 object(stdClass)#13 (1) {
33 object(stdClass)#14 (4) {
35 string(13) "account_email"
37 string(10) "account_id"
40 ["referencedColumn"]=>