Bug #56491 | Foreign Key naming incompatibility | ||
---|---|---|---|
Submitted: | 2 Sep 2010 10:15 | Modified: | 2 Sep 2010 11:14 |
Reporter: | Mutlu Tevfik Kocak | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Workbench: Modeling | Severity: | S4 (Feature request) |
Version: | 5.2.26 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | cakephp, foreign, key, model, name |
[2 Sep 2010 10:15]
Mutlu Tevfik Kocak
[2 Sep 2010 10:18]
Mutlu Tevfik Kocak
Sorry for error at: Wrong: STable: user_id, Foreign Key to STable from DTable: user_id Right: STable name: user Foreign Key name to STable from DTable: user_id
[2 Sep 2010 10:20]
Mutlu Tevfik Kocak
I realized that it is more feature request than S3. Also sorry about that. Mutlu
[2 Sep 2010 10:31]
Mutlu Tevfik Kocak
I am too attentionless: Wrong: STable name: user Foreign Key name to STable from DTable: user_id Right: STable name: users Foreign Key name to STable from DTable: user_id
[2 Sep 2010 11:14]
Valeriy Kravchuk
Thank you for the feature request.
[13 Sep 2010 2:24]
Alfredo Kojima
substr(x,y) or token[x:y] (as in python)
[21 Aug 2012 19:06]
Luke Stevens
Mutlu, I understand the rationale, but dealing with plurals is far more complex than you assume. How would you handle these? "entries" --> "entry" "axes" --> "axis" "children" --> "child" This is why, CakePHP aside, most tooling demands a convention of using the singular exclusively (e.g., naming a table "entry" instead of "entries") unless you manually handle the plurals.