* Creates new Collection instance, assigns it to the owning entity and sets the items to it (propagating them to their inverse sides)
(item: any)
| 76 | * Creates new Collection instance, assigns it to the owning entity and sets the items to it (propagating them to their inverse sides) |
| 77 | */ |
| 78 | static isCollection<T extends object, O extends object>(item: any): item is Collection<T, O> { |
| 79 | return item != null && Object.hasOwn(item, collectionSymbol); |
| 80 | } |
| 81 | |
| 82 | static create<T extends object, O extends object = object>( |
| 83 | owner: O, |
no outgoing calls
no test coverage detected