* Build the where object for the given id * @param id - The id value
(id: any)
| 498 | * @param id - The id value |
| 499 | */ |
| 500 | static buildWhereForId(id: any) { |
| 501 | const where = {} as any; |
| 502 | const idProps = this.definition.idProperties(); |
| 503 | if (idProps.length === 1) { |
| 504 | where[idProps[0]] = id; |
| 505 | } else { |
| 506 | for (const idProp of idProps) { |
| 507 | where[idProp] = id[idProp]; |
| 508 | } |
| 509 | } |
| 510 | return where; |
| 511 | } |
| 512 | } |
| 513 | |
| 514 | /** |
no test coverage detected