1 # pq\Gateway\Table\Reference pq\Gateway\Table::getRelation(string $table[, string $ref = NULL])
3 Retrieve the foreign key of the table to another table.
4 See pq\Gateway\Table\Relations::getReference().
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 $ref = $email->getRelation("account");
33 object(pq\Gateway\Table\Reference)#12 (5) {
37 string(13) "account_email"
41 string(10) "account_id"
45 ["referencedColumns"]=>