Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sabinebaer opened this issue Jan 21, 2015 · 1 comment · Fixed by #143
Closed

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

sabinebaer opened this issue Jan 21, 2015 · 1 comment · Fixed by #143
Assignees
Labels

Comments

@sabinebaer
Copy link

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?

@martiis
Copy link
Contributor

martiis commented Jan 21, 2015

Hi, I just double checked that and Yes it is a bug. In dev-master MetadataCollector has some major changes and this issue was (somehow) undetected. We'll fix it ASAP and try to release it in upcoming days (or weeks :) ). Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants