diff --git a/src/DefinitionStorage/AnnotationSluggableDefinitionStorage.php b/src/DefinitionStorage/AnnotationSluggableDefinitionStorage.php index c8eb2d0..5ba58a4 100644 --- a/src/DefinitionStorage/AnnotationSluggableDefinitionStorage.php +++ b/src/DefinitionStorage/AnnotationSluggableDefinitionStorage.php @@ -33,7 +33,7 @@ public function __construct(Doctrine\Common\Annotations\Reader $reader) public function findSluggableDefinitions(Doctrine\ORM\EntityManagerInterface $em, string $entityClassName): array { $metadata = $em->getClassMetadata($entityClassName); - $name = $metadata->getName() . '_sluggable_field'; + $name = str_replace('\\', '_', $metadata->getName() . '_sluggable_field'); if (isset($this->definitionStorage[$name])) { return $this->definitionStorage[$name];