Skip to content

Reflection Exception when specifying a document_dir and using an ES\Object #139

@sabinebaer

Description

@sabinebaer

I get a reflection exception when I try to retrieve a document which has (amongst others) a property declared as follows:
@es\Property(name="documentPart", type="object", objectName="MyNameDocumentsBundle:DocumentPart", multiple=true)

The document_dir in the config is set to: MyPath1/MyPath2

Exception:
ReflectionException: Class MyName\Bundle\MyBundle\MyPath1/MyPath2\DocumentPart does not exist

This seems to be related to #102 - it seems to work if I add the str_replace which was added in this pull request to getNamespace(...) in MetadataCollector.php.

Is this a bug or am I doing something wrong?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions