floriansemm / SolrBundle

Solr-Integration into Symfony and Doctrine2
http://floriansemm.github.io/SolrBundle
MIT License
123 stars 72 forks source link

No Repository found #131

Closed Krishn4k closed 8 years ago

Krishn4k commented 8 years ago

Hello !

I'm trying to index my entity User ( Id, Firstname, Lastname), everytime i run solr:index:populate, the bundle return the same error : No repository found for "UserBundle\Entity\User", check your input.

There is my configuration :

User.php

`<?php

namespace UserBundle\Entity;

use ... use FS\SolrBundle\Doctrine\Annotation as Solr;

/**

... ` and my repository :

` <?php

namespace UserBundle\Repository; use FS\SolrBundle\Repository\Repository;

/**

class UserRepository extends Repository { ...`

Am i doing something wrong ?

Krishn4k commented 8 years ago

I found an error in configuration

No need to use repository in my @solr/document() Wrong path in my configuration (to solr)

Sorry for this !