Skip to content

Commit 5ae2e37

Browse files
committed
fix BusinessObject::getLazyObjectId method
1 parent 42bc499 commit 5ae2e37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

meta/types/ObjectType.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ public function {$methodName}()
121121
122122
public function {$methodName}Id()
123123
{
124-
return \$this->{$name}Id;
124+
return \$this->{$name}
125+
? \$this->{$name}->getId()
126+
: \$this->{$name}Id;
125127
}
126128
127129
EOT;

0 commit comments

Comments
 (0)