restrictOnDelete method
dynamic
restrictOnDelete()
Implementation
restrictOnDelete() {
_query += " ON DELETE SET restrict ";
if (_query.contains("UPDATE")) {
query = query.contains(",") ? query.replaceAll(",", "") : query;
return "$query $_query , ";
}
return this;
}