UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

11 lines (9 loc) 598 B
import { TypeORMError } from "./TypeORMError"; export class UsingJoinColumnOnlyOnOneSideAllowedError extends TypeORMError { constructor(entityMetadata, relation) { super(`Using JoinColumn is allowed only on one side of the one-to-one relationship. ` + `Both ${entityMetadata.name}#${relation.propertyName} and ${relation.inverseEntityMetadata.name}#${relation.inverseRelation.propertyName} ` + `has JoinTable decorators. Choose one of them and left JoinTable decorator only on it.`); } } //# sourceMappingURL=UsingJoinColumnOnlyOnOneSideAllowedError.js.map