I am currently using this to generate my yaml:
doctrine orm:convert-mapping –force –from-database yml ./yaml
However, this doesn’t have the repositoryClass reference in them. Is there a way to do this via CLI?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to add the repository class manually to the yaml as a repo class has nothing to do with the db schema so convert-mapping is not the tool for the job. Just add the following to your yaml
Where Repository\MyRepository is the fully qualified name of your repo class. You could also then use the CLI to generate the file orm:generate-repositories…