Hi All,
I have a 2 tables with a 1:n relationship.
Call it :
1 Student : n Languages
What I am doing loading the Student record from the DB, and then manually adding the Languages collection in memory (one by one in code).
I would now like to save the Student and the Language collection. This works nicely with a Student.save(true).
However, if records (same key) exist in the Languages table that are loaded into the Languages collection I get a PK violation.
I suppose my question is, is there a way to remove all records from a child table given a partial key [ie the primary key of the parent]?
Rob