Extension life-cycle bug for managed entities of a type declared in the extension
Lets say I have an extension that defines a new entity type Ocean.
And also declares some Oceans as managed entities (Atlantic, Pacific).
When I install it, everything works nicely. The managed oceans are created.
But when I disable it, I start to experience problems because (I presume) attempts to manage the oceans are happening after CiviCRM no longer knows what an ocean is.
Proposed solution: ensure that entity types defined by disabled extensions are always available during attempts to manage entities.