luxifer / doctrine-functions

📚 Set of DQL Function for MySQL
http://luxifer.github.io/doctrine-functions/
MIT License
88 stars 14 forks source link

Symfony/Silex bridges #24

Open soullivaneuh opened 7 years ago

soullivaneuh commented 7 years ago

Provide some bridges for function auto-loading and configuration would be a nice addition, would not be?

I may provide some PRs for that.

luxifer commented 7 years ago

Maybe in a separate package ? I'll see with the PR

soullivaneuh commented 7 years ago

There is two school about this.

For me this does not totally worth it. I did it for one of my project before, and I finally regroup my 3 repository onto one: https://github.com/Soullivaneuh/IsoCodesValidator/tree/3.x/src/Bridge

It's also depends of the quantity of code to make IMHO.

luxifer commented 7 years ago

For now, this lib does not provide any bridge to any framework, you can use it in plain PHP or in yaml with Symfony, or whatever. For example this Silex provider for Doctrine ORM https://github.com/dflydev/dflydev-doctrine-orm-service-provider provides the necessary configuration to register new functions. Also it does not makes sense to use this lib only with DBAL as it's pure SQL, whereas the doctrine ORM converts DQL to SQL (depending on the driver)

soullivaneuh commented 7 years ago

I'll give a try when I'll have some time to see if it worth.