1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var tslib_1 = require("tslib");
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | var InitializedRelationError = (function (_super) {
|
11 | tslib_1.__extends(InitializedRelationError, _super);
|
12 | function InitializedRelationError(relation) {
|
13 | var _this = _super.call(this) || this;
|
14 | Object.setPrototypeOf(_this, InitializedRelationError.prototype);
|
15 | _this.message = "Array initializations are not allowed in entity relations. " +
|
16 | ("Please remove array initialization (= []) from \"" + relation.entityMetadata.targetName + "#" + relation.propertyPath + "\". ") +
|
17 | "This is ORM requirement to make relations to work properly. Refer docs for more information.";
|
18 | return _this;
|
19 | }
|
20 | return InitializedRelationError;
|
21 | }(Error));
|
22 | exports.InitializedRelationError = InitializedRelationError;
|
23 |
|
24 |
|