---
lang: en
title: 'API docs: repository.defaultcrudrepository._createreferencesmanyaccessorfor'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.defaultcrudrepository._createreferencesmanyaccessorfor.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [DefaultCrudRepository](./repository.defaultcrudrepository.md) &gt; [\_createReferencesManyAccessorFor](./repository.defaultcrudrepository._createreferencesmanyaccessorfor.md)

## DefaultCrudRepository.\_createReferencesManyAccessorFor() method

> Warning: This API is now obsolete.
> 
> Function to create a references many accessor
> 
> Use `this.createReferencesManyAccessorFor()` instead
> 

<b>Signature:</b>

```typescript
protected _createReferencesManyAccessorFor<Target extends Entity, TargetId>(relationName: string, targetRepoGetter: Getter<EntityCrudRepository<Target, TargetId>>): ReferencesManyAccessor<Target, ID>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  relationName | string | Name of the relation defined on the source model |
|  targetRepoGetter | [Getter](./context.getter.md)<!-- -->&lt;[EntityCrudRepository](./repository.entitycrudrepository.md)<!-- -->&lt;Target, TargetId&gt;&gt; |  |

<b>Returns:</b>

[ReferencesManyAccessor](./repository.referencesmanyaccessor.md)<!-- -->&lt;Target, ID&gt;


