deferrable initially deferred
deferrable initially deferred
- Subject: deferrable initially deferred
- From: "Ricardo J. Parada" <email@hidden>
- Date: Mon, 23 Feb 2009 18:12:25 -0500
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden