mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix related creates
This commit is contained in:
@@ -2760,8 +2760,8 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
|
||||
|
||||
foreach ($relations as &$relation) {
|
||||
if (
|
||||
\is_array($related)
|
||||
&& \array_values($related) !== $related
|
||||
\is_array($relation)
|
||||
&& \array_values($relation) !== $relation
|
||||
&& !isset($relation['$id'])
|
||||
) {
|
||||
$relation['$id'] = ID::unique();
|
||||
|
||||
Reference in New Issue
Block a user