refactor(ddd): add type for collection and fix init entity with $ignoreUndefinedProp
refactor(ddd): add type for collection and fix init entity with $ignoreUndefinedProp

hunzhiwange/framework,hunzhiwange/framework,hunzhiwange/framework