lexik / LexikTranslationBundle

This Symfony bundle allow to import translation files content into the database and provide a GUI to edit translations.
MIT License
416 stars 254 forks source link

"Undefined index: dbname" with Oracle DB #327

Open mdrewek opened 5 years ago

mdrewek commented 5 years ago

I have a project with Oracle DB. As soon as I activate this bundle, i get the message above (Symfony 3.4.12, Lexik 4.0.11).

It's because of the unset in Lexik\Bundle\TranslationBundle\Storage\DoctrineORMStorage line 35. Oracle doesn't support connections without database name (see here for example).

What's the point in unsetting the parameters, is this generally needed, or for specific database vendors? Can it be excluded in case of Oracle?

mdrewek commented 5 years ago

Any updates on this? Can someone please tell me any backgrounds on why dropping connection parameters makes any sense?

mdrewek commented 5 years ago

Okay, I guess Lexik just cannot be used with Oracle backend. I assumed this is intended. Maybe docs should be updated, to keep Oracle users informed that Lexik does not work with Oracle.