src/Metadata/EntitySchemaTransformer.js
/**
     * Evaluates repository schema option.
     *
     * @param {MetadataArgsStorage} metadataArgsStorage
     * @param {EntitySchema} entitySchema
     *
     * @private
     */
Evaluates repository schema option.

@private
Evaluates repository schema option . @private
_processRepository(metadataArgsStorage, entitySchema) {
        const repository = entitySchema.options.repository;
        if (! repository) {
            return;
        }
        const entity = entitySchema.options.target;
        const entityClass = new ReflectionClass(entity);
        const reflClass = new ReflectionClass(entitySchema.options.repository);
        if (! reflClass.isSubclassOf(AbstractRepository) && ! reflClass.isSubclassOf(Repository) ) {
            throw new LogicException(__jymfony.sprintf('"%s" is not a subclass of Repository', reflClass.name));
        }
        metadataArgsStorage.entityRepositories.push({
            target: reflClass.getConstructor(),
            entity: entityClass.getConstructor(),
        });
    }
_processRepository ( metadataArgsStorage , entitySchema ) { const repository = entitySchema . options . repository ; if ( ! repository ) { return ; } const entity = entitySchema . options . target ; const entityClass = new ReflectionClass ( entity ) ; const reflClass = new ReflectionClass ( entitySchema . options . repository ) ; if ( ! reflClass . isSubclassOf ( AbstractRepository ) && ! reflClass . isSubclassOf ( Repository ) ) { throw new LogicException ( __jymfony . sprintf ( '"%s" is not a subclass of Repository' , reflClass . name ) ) ; } metadataArgsStorage . entityRepositories . push ( { target : reflClass . getConstructor ( ) , entity : entityClass . getConstructor ( ) , } ) ; }
Evaluates repository schema option.
Evaluates repository schema option .