Doctrinebundle: Connection/Driver options does not support arrays

Created on 4 Jan 2015  路  7Comments  路  Source: doctrine/DoctrineBundle

I tried adding "userDefinedFunctions" for a sqlite db via configuration.

While the DoctrineBundle maps the options field of the configuration to the correct parameter in the PDOSqlite\Driver's connect method, it does not allow arrays therefore it's not useable for my use-case.

I handled this by overwriting driver_class and extending the connect method to append the userDefinedFunctions but i still think it should be supported via configuration.

Please don't confuse this with extending dql function which is already supported by the configuration.

Bug

Most helpful comment

All 7 comments

I encounter the same problem today.
I think the problem comes from this line
where each node of options parameter is considered as a scalar.

@jbenoit2011 If you need help with implementing the workaround i mentioned, i can post it as a gist.

@smurfy That's what I did and thank you very much because it worked. But that's not very convenient :/

Same issue :/.
@smurfy I used same approach :)

@smurfy @bmxpira Can you post the gist ?

Fixed in #1085, will be released in 1.12.3.

Was this page helpful?
0 / 5 - 0 ratings