Make attachments use a DatabaseLookupTable.

This commit is contained in:
Brent Simmons
2017-08-20 17:46:15 -07:00
parent 213b1d7a6f
commit c164c29cde
13 changed files with 77 additions and 320 deletions

View File

@@ -49,6 +49,15 @@ extension Article {
}
}
extension Article: DatabaseObject {
var databaseID: String {
get {
return articleID
}
}
}
extension Set where Element == Article {
func withNilProperty<T>(_ keyPath: KeyPath<Article,T?>) -> Set<Article> {

View File

@@ -23,7 +23,7 @@ extension Author {
}
}
extension Author: DatabaseObject {
public extension Author: DatabaseObject {
var databaseID: String {
get {