private void deleteManyToManyLinks ( Many2ManyAssociation association ) { String join = association . getJoin ( ) ; String sourceFK = association . getSourceFkName ( ) ; new DB ( metaModelLocal . getDbName ( ) ) . exec ( "DELETE FROM " + join + " WHERE " + sourceFK + " = ?" , getId ( ) ) ; }
Deletes all records from a join table related to this model .