1
0
Fork 0
mirror of synced 2024-10-02 18:26:49 +13:00

relationType

This commit is contained in:
fogelito 2023-03-13 12:11:38 +02:00
parent f5f51c4fc9
commit b1cc4ada4c
2 changed files with 2 additions and 2 deletions

View file

@ -1396,7 +1396,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/relati
'filters' => [],
'options' => [
'relatedCollectionId' => $relatedCollectionId,
'type' => $type,
'relationType' => $type,
'twoWay' => $twoWay,
'twoWayKey' => $twoWayKey,
'onUpdate' => $onUpdate,

View file

@ -100,7 +100,7 @@ class DatabaseV1 extends Worker
!$dbForProject->createRelationship(
collection: 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(),
relatedCollection: 'database_' . $database->getInternalId() . '_collection_' . $relatedCollection->getInternalId(),
type: $options['type'],
type: $options['relationType'],
twoWay: $options['twoWay'],
id: $options['id'],
twoWayKey: $options['twoWayKey'],