Andreas Flack writes:
> Hi!
Hi!
> This tells me that there are over 6000 orphans of 15000 total
> parameters. When I delete them all, the site continues to work normally,
> so I assume they were really orphans. So I was wondering if there might
> be some bug: Normally they should get deleted when the parent object is
> deleted, right?
No. Core doesn't deletes parameters or attachments.
There are few reasons why core doesn't (and really shouldn't) delete
dependents:
* Parameters are also standalone objects
* You might want to move parameter to other object or make it
"orphaned" by purpose
* You might want to move attachment to other object
* Attachment doesn't have to handle blob file, it may be shared one
Vinland checks if object has dependents. We decided not to port it to
Ragnaroek.
Basically, MGD_ERR_HAS_DEPENDENTS error code is thrown, and application
itself is responsible for the way how dependents are moved/deleted/purged.
Piotras
_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user