However, there is no TablePrefix class in the Doctrine namespace. You'll have to define that yourself. Examples like in the Doctrine cookbook define such a TablePrefix class as an event-listener. Just as with Joomla CMS plugins you use the function name to communicate on what event you want to have the function triggered. Here: loadClassMetadata ( ).
You added that event and the listener correctly to Doctrine's EventManager:
but you also have to provide that TablePrefix class, = the listener class, yourself. See what I wrote some postings ago.
I just wondered: didn't you get an error that that TablePrefix class was not found? Or did you add it to the Doctrine namespace yourself? AFAIK normally there is nothing in there:all Doctrine's classes are in subnamspaces Doctrine\ORM, Doctrine DBAL and Doctrine\Common.
On Sunday, 6 April 2014 19:03:25 UTC+2, piotr_cz wrote:
I didn't know that I should use the PDO versions for DBAL connection, so I just passed the same as I have configured for Joomla\DatabaseDriver, it worked and I moved along :)
BTW: for simple tasks (listing application extensions) I'm thinking about using generic PDO trough PdoServiceProvider , so folks don't have to require either Joomla\Database nor Doctrine.