fix wrong optional configuration in Field.Virtual

This commit is contained in:
John Estropia
2020-02-21 11:17:39 +09:00
parent 12c5aeaaa4
commit 0df6c737c1

View File

@@ -325,7 +325,7 @@ extension FieldContainer.Virtual where V: FieldOptionalType {
self.init( self.init(
keyPath: keyPath, keyPath: keyPath,
isOptional: false, isOptional: true,
customGetter: customGetter, customGetter: customGetter,
customSetter: customSetter, customSetter: customSetter,
affectedByKeyPaths: affectedByKeyPaths affectedByKeyPaths: affectedByKeyPaths