XCode7 beta 6 updates

This commit is contained in:
John Estropia
2015-08-25 14:24:18 +09:00
parent 2bcf8008c5
commit 69f902ef20
7 changed files with 13 additions and 20 deletions

View File

@@ -201,7 +201,7 @@ public extension BaseDataTransaction {
}
}
for object in self.fetchAll(From(T), Where("%K IN %@", T.uniqueIDKeyPath, mapping.keys.array)) ?? [] {
for object in self.fetchAll(From(T), Where("%K IN %@", T.uniqueIDKeyPath, Array(mapping.keys))) ?? [] {
try autoreleasepool {
@@ -261,7 +261,7 @@ public extension BaseDataTransaction {
}
var objects = Dictionary<T.UniqueIDType, T>()
for object in self.fetchAll(From(T), Where("%K IN %@", T.uniqueIDKeyPath, mapping.keys.array)) ?? [] {
for object in self.fetchAll(From(T), Where("%K IN %@", T.uniqueIDKeyPath, Array(mapping.keys))) ?? [] {
try autoreleasepool {