diff --git a/GRDB/RowModel.swift b/GRDB/RowModel.swift index e00fee121..5db03d8e6 100644 --- a/GRDB/RowModel.swift +++ b/GRDB/RowModel.swift @@ -411,7 +411,7 @@ public class RowModel { - parameter db: A Database. - returns: Whether the primary key matches a row in the database. */ - public func exists(db: Database) -> Bool { + final public func exists(db: Database) -> Bool { return (Row.fetchOne(DataMapper(self).existsStatement(db)) != nil) }