• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

typeorm / typeorm / 19549987525

20 Nov 2025 08:11PM UTC coverage: 80.769% (+4.3%) from 76.433%
19549987525

push

github

web-flow
ci: run tests on commits to master and next (#11783)

Co-authored-by: Oleg "OSA413" Sokolov <OSA413@users.noreply.github.com>

26500 of 32174 branches covered (82.36%)

Branch coverage included in aggregate %.

91252 of 113615 relevant lines covered (80.32%)

88980.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

42.31
/src/error/CannotCreateEntityIdMapError.ts
1
import { EntityMetadata } from "../metadata/EntityMetadata"
26✔
2
import { ObjectLiteral } from "../common/ObjectLiteral"
26✔
3
import { TypeORMError } from "./TypeORMError"
26✔
4

26✔
5
/**
26✔
6
 * Thrown when user tries to create entity id map from the mixed id value,
26✔
7
 * but id value is a single value when entity requires multiple values.
26✔
8
 */
26✔
9
export class CannotCreateEntityIdMapError extends TypeORMError {
26✔
10
    constructor(metadata: EntityMetadata, id: any) {
26✔
11
        super()
×
12

×
13
        const objectExample = metadata.primaryColumns.reduce(
×
14
            (object, column, index) => {
×
15
                column.setEntityValue(object, index + 1)
×
16
                return object
×
17
            },
×
18
            {} as ObjectLiteral,
×
19
        )
×
20
        this.message = `Cannot use given entity id "${id}" because "${
×
21
            metadata.targetName
×
22
        }" contains multiple primary columns, you must provide object in following form: ${JSON.stringify(
×
23
            objectExample,
×
24
        )} as an id.`
×
25
    }
×
26
}
26✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc