@@ -201,7 +201,7 @@ public function getBeanPropertyDescriptors(): array
201
201
public function getConstructorProperties (): array
202
202
{
203
203
$ constructorProperties = array_filter ($ this ->beanPropertyDescriptors , function (AbstractBeanPropertyDescriptor $ property ) {
204
- return !$ property instanceof ScalarReferencePropertyDescriptor && $ property ->isCompulsory ();
204
+ return !$ property instanceof InheritanceReferencePropertyDescriptor && $ property ->isCompulsory ();
205
205
});
206
206
207
207
return $ constructorProperties ;
@@ -230,7 +230,7 @@ public function getPropertiesWithDefault(): array
230
230
public function getExposedProperties (): array
231
231
{
232
232
$ exposedProperties = array_filter ($ this ->beanPropertyDescriptors , function (AbstractBeanPropertyDescriptor $ property ) {
233
- return !$ property instanceof ScalarReferencePropertyDescriptor && $ property ->getTable ()->getName () === $ this ->table ->getName ();
233
+ return !$ property instanceof InheritanceReferencePropertyDescriptor && $ property ->getTable ()->getName () === $ this ->table ->getName ();
234
234
});
235
235
236
236
return $ exposedProperties ;
@@ -256,7 +256,7 @@ private function getProperties(Table $table): array
256
256
$ localProperties = $ this ->getPropertiesForTable ($ table );
257
257
foreach ($ localProperties as $ name => $ property ) {
258
258
// We do not override properties if this is a primary key!
259
- if (!$ property instanceof ScalarReferencePropertyDescriptor && $ property ->isPrimaryKey ()) {
259
+ if (!$ property instanceof InheritanceReferencePropertyDescriptor && $ property ->isPrimaryKey ()) {
260
260
continue ;
261
261
}
262
262
$ properties [$ name ] = $ property ;
@@ -302,7 +302,7 @@ private function getPropertiesForTable(Table $table): array
302
302
// Check that this property is not an inheritance relationship
303
303
$ parentRelationship = $ this ->schemaAnalyzer ->getParentRelationship ($ table ->getName ());
304
304
if ($ parentRelationship !== null && $ parentRelationship ->getName () === $ fk ->getName ()) {
305
- $ beanPropertyDescriptors [] = new ScalarReferencePropertyDescriptor (
305
+ $ beanPropertyDescriptors [] = new InheritanceReferencePropertyDescriptor (
306
306
$ table ,
307
307
$ column ,
308
308
$ this ->namingStrategy ,
0 commit comments