Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workbench/doctrine plugin #21

Open
cesaric opened this issue May 23, 2011 · 0 comments
Open

Workbench/doctrine plugin #21

cesaric opened this issue May 23, 2011 · 0 comments

Comments

@cesaric
Copy link
Member

cesaric commented May 23, 2011

If a child table has two different foreign keys referencing the same parent table, the yaml outputted has the same foreignAlias value for both. We could possibly create another doctrine directive in the Workbench comments similarly to who we address join tables. I may address this in the new Workbench file parser.

In the example below, one would need to manually change the second foreignAlias to "pendingUserAttribues" or like "userAttributes2" (appending a number could be automated):

UserAttribute:
tableName: UserAttribute
columns:
...
...
relations:
InputLookup:
class: InputLookup
local: inputLookupId
foreign: id
foreignAlias: userAttributes
onDelete: cascade
onUpdate: cascade
PendingInputlookup:
class: InputLookup
local: pendingInputlookupId
foreign: id
foreignAlias: userAttributes
onDelete: cascade
onUpdate: cascade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant