IConventions
interface IConventions
Methods
string|array|null
getPrimary($table)
Returns primary key for table.
array
getHasManyReference($table, $key)
Returns referenced table & referenced column.
array
getBelongsToReference($table, $key)
Returns referenced table & referencing column.
Details
at line 21
string|array|null
getPrimary($table)
Returns primary key for table.
at line 33
array
getHasManyReference($table, $key)
Returns referenced table & referenced column.
Example: (author, book) returns array(book, author_id)
at line 45
array
getBelongsToReference($table, $key)
Returns referenced table & referencing column.
Example (book, author) returns array(author, author_id) (book, translator) returns array(author, translator_id)