 		 * @param purge If set to true, clears cache instead of just invalidating it.
 		 */
 		public function invalidateAll(purge:Boolean = false):void
-        {
+        {
+			if (objectWasDisposed(this))
+				return;
 			if (purge)
 			{
 				idsToFetch = {};

		 */
		public function invalidate(id:int, alsoInvalidateRelatives:Boolean = false):void
		{
			//trace('invalidate',id, alsoInvalidateRelatives, entityCache[id]);
			callbacks.delayCallbacks();
			

    import weave.api.data.ColumnMetadata;
    import weave.api.data.EntityType;
    import weave.api.getCallbackCollection;
    import weave.api.objectWasDisposed;
    import weave.api.registerLinkableChild;
    import weave.api.reportError;
    import weave.api.services.IWeaveEntityManagementService;
