Skip to content

Commit

Permalink
Fix a comment
Browse files Browse the repository at this point in the history
...
  • Loading branch information
helje5 committed Dec 4, 2024
1 parent adca97f commit b8105c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/ZeeQL/Control/EntityType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ZeeQL
//
// Created by Helge Hess on 02/03/2017.
// Copyright © 2017 ZeeZide GmbH. All rights reserved.
// Copyright © 2017-2024 ZeeZide GmbH. All rights reserved.
//

/**
Expand Down Expand Up @@ -32,6 +32,8 @@ public protocol EntityType { // TODO: better name
* ``Entity`` assigned, for example when the ``Entity`` is specified in code.
* If a class has a fixed Entity, we can do more tricks in Swift.
*
* It enhances ``EntityType`` w/ a PAT for the concrete entity type.
*
* Example:
* ```swift
* class Address : ActiveRecord, TypedEntityType {
Expand All @@ -40,7 +42,7 @@ public protocol EntityType { // TODO: better name
* let street : String? = nil
* let person = ToOne<Person>()
* }
* static let e = CodeEntity<Address>(Entity())
* static let e = Entity()
* }
* ```
*/
Expand Down

0 comments on commit b8105c3

Please sign in to comment.