"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RelationId = RelationId;
const globals_1 = require("../../globals");
/**
 * Special decorator used to extract relation id into separate entity property.
 * @param relation
 * @param alias
 * @param queryBuilderFactory
 * @experimental
 */
function RelationId(relation, alias, queryBuilderFactory) {
    return function (object, propertyName) {
        (0, globals_1.getMetadataArgsStorage)().relationIds.push({
            target: object.constructor,
            propertyName: propertyName,
            relation: relation,
            alias: alias,
            queryBuilderFactory: queryBuilderFactory,
        });
    };
}

//# sourceMappingURL=RelationId.js.map
