Skip to content

Commit 487034a

Browse files
committed
d25d800 rolled back
1 parent 37b3a72 commit 487034a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

main/Base/LightMetaProperty.class.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,14 @@ public function fillQuery(
360360
return $query;
361361

362362
$getter = $this->getter;
363-
363+
364+
if (
365+
$this->relationId
366+
&& $this->strategyId == FetchStrategy::LAZY
367+
) {
368+
$getter = $getter.'Id';
369+
}
370+
364371
$value = $object->{$getter}();
365372

366373
if ($this->type == 'binary') {

0 commit comments

Comments
 (0)