Skip to content

Commit d3bc137

Browse files
committed
fixup! feat: extend Entity and adjust QBMapper to support Snowflake IDs
1 parent 9c46c77 commit d3bc137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/public/AppFramework/Db/SnowflakeAwareEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getCreatedAt(): ?\DateTimeImmutable {
4343
}
4444

4545
public function getSnowflake(): ?Snowflake {
46-
if (empty($this->id)) {
46+
if ($this->id === null) {
4747
return null;
4848
}
4949

0 commit comments

Comments
 (0)