We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a346940 commit 81b4807Copy full SHA for 81b4807
src/Autocomplete/src/Doctrine/EntityMetadata.php
@@ -84,11 +84,11 @@ public function getAssociationMetadata(string $propertyName): array
84
85
public function getPropertyDataType(string $propertyName): string
86
{
87
- try {
+ if (\array_key_exists($propertyName, $this->metadata->fieldMappings)) {
88
return $this->getFieldMetadata($propertyName)['type'];
89
- } catch (\InvalidArgumentException $e) {
90
- return $this->getAssociationMetadata($propertyName)['type'];
91
}
+
+ return $this->getAssociationMetadata($propertyName)['type'];
92
93
94
public function getIdValue(object $entity): string
0 commit comments