1 # pq\Gateway\Table\Reference pq\Gateway\Table\Relations::getReference(string $table[, string $ref = NULL])
3 Retrieve the foreign key of the table to another table.
4 See pq\Gateway\Table::getRelation().
9 The table name referenced by a foreign key of the table.
10 * Optional string $ref = NULL
11 A specific relation id if there are more foreign keys to the same table.
15 * pq\Gateway\Table\Reference, the foreign key.
16 * NULL, if the tables are not related.
24 $email = new Table("account_email");
25 $relation = new Table\Relations($email);
26 $account = $relation->getReference("account");
34 object(pq\Gateway\Table\Reference)#12 (5) {
38 string(13) "account_email"
42 string(10) "account_id"
46 ["referencedColumns"]=>