I have a table articleLocale and I created the model with the doctrine tool using the following command: # doctrine orm:convert-mapping --from-database annotation temp.
The model that was created was Articlelocale instead of ArticleLocale and the annotations were wrong.
When trying to fetch some data, I get the following error: Message: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'doctrine.articlelocale' doesn't exist
If i change the annotation so that it reads articleLocale instead of articlelocale it works like it should be working.
So there is a problem with camelCase table names.