Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ public function loadClassMetadata(ClassMetadata $metadata)
continue;
}

if (!property_exists($className, $property)) {
continue;
}

$types = $this->typeExtractor->getTypes($className, $property);
if (null === $types) {
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ class PropertyInfoLoaderEntity
public $alreadyPartiallyMappedCollection;

public $readOnly;

public function setNonExistentField()
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function testLoadClassMetadata()
'alreadyMappedNotBlank',
'alreadyPartiallyMappedCollection',
'readOnly',
'nonExistentField',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No asserts were added, but, without the fix, these changes are enough to trigger an exception to be thrown while running this test.

])
;
$propertyInfoStub
Expand Down