     ###
     updateRelationIds: (options = {})->
 
-        for propName, typeInfo of @constructor.getPropertyInfo()
+        for propName in @constructor.getModelProps()
+
+            typeInfo = @constructor.getPropertyInfo(propName)
 
             modelName = typeInfo.model
-            continue if not modelName
 
             propValue = @[propName]
 



    ###*
    create plain object without relational entities
    descendants of Entity are removed, but not descendants of BaseModel
    descendants of Entity in descendants of BaseModel are removed ( = recursive)

    @properties: {}


    ###
    properties to cache, private.
    ###
    @_propsInfo: undefined
    @_propOfCreatedAt: undefined 
    @_propOfUpdatedAt: undefined
    @_modelProps: undefined


    ###*
