mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
refactor: use getId() instead of getAttribute('$id')
This commit is contained in:
1 parent
00d091513d
commit
d792d3bbea
1 file changed
+1
-1
+1
-1
@@ -259,7 +259,7 @@ abstract class Action extends DatabasesAction
|
||||
$relationId = null;
|
||||
|
||||
if ($relation instanceof Document) {
|
||||
$relationId = $relation->getAttribute('$id');
|
||||
$relationId = $relation->getId();
|
||||
} elseif (\is_string($relation)) {
|
||||
$relationId = $relation;
|
||||
} elseif (\is_array($relation) && \array_values($relation) !== $relation) {
|
||||
|
||||
Reference in new issue
Block a user