Bug #34154 dragging objects from catalog to model doesn't draw relationships
Submitted: 29 Jan 2008 23:57 Modified: 4 Feb 2008 21:19
Reporter: Monty Taylor Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.0.12 OS:Windows
Assigned to: Johannes Taxacher CPU Architecture:Any

[29 Jan 2008 23:57] Monty Taylor
Description:
When using Workbench, I was trying to create a second model containing a subset of the tables from the full model. I created a second model, and then dragged tables on to it, but they did not draw the relationships. 

How to repeat:
Open the attached file. Try dragging objects from the catalog onto the second model. Try grabbing affiliates and affiliate_types - there is a relationship there. 

Suggested fix:
Draw the lines.
[30 Jan 2008 5:49] Valeriy Kravchuk
Thank you for a problem report. I was able to verify it. 

But the result actually depends on order of tables dragging. If you start with parent table and drag child one next you will get relationship drawn.
[30 Jan 2008 6:31] Monty Taylor
I can also confirm that in my setup the order of tables being drug is important. I'm not sure how I feel about that in general... I can see why that might make sense in general to optimize the objects that have to be walked when you add one to the model...

But for the case where I drag all related tables, I think it should figure out all the relationships.
[2 Feb 2008 9:45] Bernhard Hoefling
It is nessecary that all relationships are displayed - in any order of inserting tables to the model
[4 Feb 2008 21:19] Johannes Taxacher
works in 5.0.12 SVN Rev 2510