Closed Cypaubr closed 7 years ago
your config looks ok. This output is a result of an underlaying exception in https://github.com/floriansemm/SolrBundle/blob/master/Command/SynchronizeIndexCommand.php#L46.
I can not do so much for you.
Is the UserRepository inside the SolrRepository folder (OneDayBundle/SolrRepository/UserRepository.php)? Make sure the namespace fits the folder it is in and the filename, especially the cases (camels and all). Symfony (or the composer autoloader) doesn't like putting something not referenced anywhere in a namespace "folder" when it's not in the exact named folder or filename.
It can't find the file when something is named wrong. Would explain the error.
@Koalabaerchen Yes, all the files are in the right directory, this has already been checked. Same thing for the namespace. This is not the problem...
Does it work if you remove the repository from the @Solr\Document
annotation?
edit: Oh, and does OneDayBundle\Repository\UserRepository exist?
Issue fixed just had to remove the number from core names...
Hi, I try to index my users but I have a recurrent error :
Here is my User entity class :
And here is my repository :
Here is the SolrBundle part of my configuration file :
Thanks for your help!
Cheers!