This question is locked. New answers and comments are not allowed.
Hi,
I've a problem using the dependent property. I'm not using the ORM Classic but visual designer.
I want to delete a parent when I delete its child
I've a metaclass "Photography" defined like this :
PhotographyId
Name
FileId
File
And a metaclass "File" defined like this :
FileId
Url
Photographies
And an association between this 2 metaclasses : PhotographyHasFile, SourceMultiplicity : One, TargetMultiplicity : ZeroOne.
When i look to the relationships for the metaclass "Photography", I see my association between my 2 metaclasses and check "managed" and "dependent" check boxes.
In my code, I load a photography using a fetchstrategy to get file informations too. When I do "dbcontext.delete(oPhotography)" I'm expecting the photography and its file are deleted but only the photography is deleted.
Could you explain why ? And how to do cascading delete with the new model of openacces.
Thanks for your help.
I've a problem using the dependent property. I'm not using the ORM Classic but visual designer.
I want to delete a parent when I delete its child
I've a metaclass "Photography" defined like this :
PhotographyId
Name
FileId
File
And a metaclass "File" defined like this :
FileId
Url
Photographies
And an association between this 2 metaclasses : PhotographyHasFile, SourceMultiplicity : One, TargetMultiplicity : ZeroOne.
When i look to the relationships for the metaclass "Photography", I see my association between my 2 metaclasses and check "managed" and "dependent" check boxes.
In my code, I load a photography using a fetchstrategy to get file informations too. When I do "dbcontext.delete(oPhotography)" I'm expecting the photography and its file are deleted but only the photography is deleted.
Could you explain why ? And how to do cascading delete with the new model of openacces.
Thanks for your help.