RemoveOrphan doesn't work?

I have this mapping:

TZpiAlgorithmDef = class
    [ManyValuedAssociation([TAssociationProp.Lazy], CascadeTypeAllRemoveOrphan, 'FAlgorithmDef')]
    FParamDefs: Proxy<TList<TZpiAlgorithmParamDef>>;
...
end

var LAlgorithmDef: TZpiAlgoritmDef;
var LParamDef: TZpiAlgorithmParamDef;

LAlgorithmDef.ParamDefs.Remove(LParamDef);

ObjectManager.Update(LAlgorithmDef);

But it appears to me that the child record (LParamDef) is not removed from the database. Any heads up/advice?

Just realized that I didn't call Flush after Update.

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.