relationType
This commit is contained in:
parent
f5f51c4fc9
commit
b1cc4ada4c
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
|
@ -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'],
|
||||||
|
|
Loading…
Reference in a new issue