Hello Artur,

Artur Z wrote:
I tried to use torque onDelete attribute on MSSQL but it did't wokred
db was throwing an exception about constraint violation
maybe I did something wrong

This sounds more like a problem with your schema. What do you want to do onDelete? onDelete=none or onDelete=cascade?

You seem to be trying to delete DB records that have dependent records linking to them. If onDelete=none, then an attempt to delete this record will cause a constraint violation.

Look at Torque's debug output, take the SQL statement and execute it "by hand". You should also look at the SQL code that was produced from the schema and check whether that is what you wanted.

--


Regards/Gru�,

Tarlika Elisabeth Schmitz

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to