mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
refactor: use getId() instead of getAttribute('$id')
This commit is contained in:
parent
00d091513d
commit
d792d3bbea
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue