Skip to content

Commit e719127

Browse files
committed
Inheritance: Correct constructor on different pk column name
1 parent 57523c1 commit e719127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/BeanDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function getBeanPropertyDescriptors(): array
201201
public function getConstructorProperties(): array
202202
{
203203
$constructorProperties = array_filter($this->beanPropertyDescriptors, function (AbstractBeanPropertyDescriptor $property) {
204-
return $property->isCompulsory();
204+
return !$property instanceof ScalarReferencePropertyDescriptor && $property->isCompulsory();
205205
});
206206

207207
return $constructorProperties;

0 commit comments

Comments
 (0)