addConstraints method
Set the base constraints on the relation query.
Implementation
@override
void addConstraints() {
if ((parent as KhademModel).getAttribute(localKey) != null) {
query.where(
foreignKey,
'=',
(parent as KhademModel).getAttribute(localKey),
);
}
}