Answer the question
In order to leave comments, you need to log in
Symfony2+Doctrine2 why is the repository not created?
the doctrine:generate:entities command does not create a repository.
I describe the actions
I generate an XML description for the existing database:
php app/console doctrine:mapping:import --force AppBundle xml
php app/console doctrine:mapping:convert annotation ./src
/**
* ...
* @ORM\Entity(repositoryClass="AppBundle\Entity\OffersCategoriesRepository")
*/
class OffersCategories { /**/ }
php app/console doctrine:generate:entities AppBundle
Answer the question
In order to leave comments, you need to log in
I did not find out the reason, I solved the problem by adding a description of the repository to the xml file.
Having executed the command to create entities, everything worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question