         }
     }
     
-    func deleteObject(aObj: T) {
+    func deleteObject(inout aObj: T) {
         //self.delete(aObj.id)
         aObj.uid = nil;
     }

        return nil;
    }

    func updateObject(aObj: T) {
        
        if aObj.dirty {
            var data = aObj.encodeData()

import Foundation


class ObjectStore<T: Coding> : DataStore {
    
    //var objectType : Class!
    
