1
0
Fork 0
mirror of synced 2024-10-03 02:37:40 +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' => [], 'filters' => [],
'options' => [ 'options' => [
'relatedCollectionId' => $relatedCollectionId, 'relatedCollectionId' => $relatedCollectionId,
'type' => $type, 'relationType' => $type,
'twoWay' => $twoWay, 'twoWay' => $twoWay,
'twoWayKey' => $twoWayKey, 'twoWayKey' => $twoWayKey,
'onUpdate' => $onUpdate, 'onUpdate' => $onUpdate,

View file

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