Skip to content

Commit 7e1ff0d

Browse files
committed
correct name of method for fetching FQCN
the current method does not seem to exist, but this one will return the FQCN of the metadata being wrapped, which seems to be what it intends to do. there are no tests for this code atm, and the ClassMetadata service has properties accessed which do not exist on the interface which makes mocking or adding a dummy problematic. static analysis would also have trouble here I think.
1 parent 85760ce commit 7e1ff0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Autocomplete/src/Doctrine/EntityMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function getPropertyMetadata(string $propertyName): array
5353
return $this->metadata->associationMappings[$propertyName];
5454
}
5555

56-
throw new \InvalidArgumentException(sprintf('The "%s" field does not exist in the "%s" entity.', $propertyName, $this->getFqcn()));
56+
throw new \InvalidArgumentException(sprintf('The "%s" field does not exist in the "%s" entity.', $propertyName, $this->metadata->getName()));
5757
}
5858

5959
public function getPropertyDataType(string $propertyName): string

0 commit comments

Comments
 (0)