1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Iterate relation by reference on update

This commit is contained in:
Jake Barnby 2023-04-13 16:08:53 +12:00
parent c7317b0468
commit 975b044de0
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -3350,7 +3350,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/documents/:docum
fn() => $dbForProject->getDocument('database_' . $database->getInternalId(), $relatedCollectionId)
);
foreach ($related as $relation) {
foreach ($related as &$relation) {
if (
\is_array($relation)
&& \array_values($relation) !== $relation