Skip to content

Commit 559cd85

Browse files
committed
refactor: change order of __isset to match original
1 parent ffca2c4 commit 559cd85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Granada/Granada.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ public function __isset($property)
461461
if (array_key_exists($property, $this->relationships)) {
462462
return true;
463463
}
464+
if ($this->orm->__isset($property)) return true;
464465

465466
$class = static::class;
466467
$prefix_methods = ['get_', 'missing_', ''];
@@ -471,7 +472,7 @@ public function __isset($property)
471472
}
472473
}
473474

474-
return $this->orm->__isset($property);
475+
return false;
475476
}
476477

477478
/**

0 commit comments

Comments
 (0)