@@ -720,7 +720,7 @@ To do this, add the name of the repository class to your mapping definition.
720
720
use Doctrine\ORM\Mapping as ORM;
721
721
722
722
/**
723
- * @ORM\Entity(repositoryClass="Acme\StoreBundle\Repository \ProductRepository")
723
+ * @ORM\Entity(repositoryClass="Acme\StoreBundle\Entity \ProductRepository")
724
724
*/
725
725
class Product
726
726
{
@@ -732,7 +732,7 @@ To do this, add the name of the repository class to your mapping definition.
732
732
# src/Acme/StoreBundle/Resources/config/doctrine/Product.orm.yml
733
733
Acme\StoreBundle\Entity\Product :
734
734
type : entity
735
- repositoryClass : Acme\StoreBundle\Repository \ProductRepository
735
+ repositoryClass : Acme\StoreBundle\Entity \ProductRepository
736
736
# ...
737
737
738
738
.. code-block :: xml
@@ -743,7 +743,7 @@ To do this, add the name of the repository class to your mapping definition.
743
743
<doctrine-mapping >
744
744
745
745
<entity name =" Acme\StoreBundle\Entity\Product"
746
- repository-class =" Acme\StoreBundle\Repository \ProductRepository" >
746
+ repository-class =" Acme\StoreBundle\Entity \ProductRepository" >
747
747
<!-- ... -->
748
748
</entity >
749
749
</doctrine-mapping >
@@ -761,8 +761,8 @@ ordered alphabetically.
761
761
762
762
.. code-block :: php
763
763
764
- // src/Acme/StoreBundle/Repository /ProductRepository.php
765
- namespace Acme\StoreBundle\Repository ;
764
+ // src/Acme/StoreBundle/Entity /ProductRepository.php
765
+ namespace Acme\StoreBundle\Entity ;
766
766
767
767
use Doctrine\ORM\EntityRepository;
768
768
@@ -1088,7 +1088,7 @@ Of course, if you know up front that you'll need to access both objects, you
1088
1088
can avoid the second query by issuing a join in the original query. Add the
1089
1089
following method to the ``ProductRepository `` class::
1090
1090
1091
- // src/Acme/StoreBundle/Repository /ProductRepository.php
1091
+ // src/Acme/StoreBundle/Entity /ProductRepository.php
1092
1092
public function findOneByIdJoinedToCategory($id)
1093
1093
{
1094
1094
$query = $this->getEntityManager()
0 commit comments