Hi, trying to see why my package won't delete cleanly...
I'll post detail messages after this one, and I will make this one an abstract.
I have a table for websites, with two of the fields being site_id (the pk) and package_id (an fk), the latter being the object ID of the apm_package instance that gets created when a site package is instantiated.
So, the package object is one object ID, while the website is a different object which has a pointer to the package.
When trying to delete the package, if I don't first delete the row in the sites table, the package won't delete due to an fk involving context_id. I'll post the relevent parts of the websites table in a subsequent message in this thread.
I found this while writing an automated test which will create and destroy a website; the test now has code that specifically deletes the websites row. After running this code, it then deletes the package and site node.
-Jim, more in a sec...