Hi All,

Does anybody know how to create a migration that sets the foreign key constraints to be deferred initially?

For example, entity modeler in WOLips has a button to generate the migration code. In that code the code that sets the constraints looks like this:

                clientTable.addForeignKey("address_id", "address", 
"address_id");

But then when I look in FrontBaseManager the foreign key constraint is not being deferred. So my insert statement into the client table generates an error because the client object is inserted into the database before the address object.

Thanks,
Ricardo

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to