generateRelationName() protected method
Generate a relation name for the specified table and a base name.
protected string generateRelationName ( $relations, $table, $key, $multiple ) | ||
---|---|---|
$relations | array |
The relations being generated currently. |
$table | yii\db\TableSchema |
The table schema |
$key | string |
A base name that the relation name may be generated from |
$multiple | boolean |
Whether this is a has-many relation |
return | string |
The relation name |
Please login to continue.