mitchellvanw / laravel-doctrine

NO LONGER MAINTAINED! A Doctrine 2 implementation that melts with Laravel
MIT License
187 stars 74 forks source link

Use \Doctrine\ORM\Configuration for creation of EntityManager and provide hook to modify configurations #15

Closed valllabh closed 7 years ago

valllabh commented 10 years ago

Use \Doctrine\ORM\Configuration for creation of EntityManager and provide hook to modify configurations. I know configurations can be modified right now through config. file but there is no way to use addCustomStringFunction function of \Doctrine\ORM\Configuration as we are using simple array for EM creation.

mitchellvanw commented 10 years ago

Good point!

kirkbushell commented 10 years ago

Could probably just create a new configuration element that allows for the definition of custom functions.etc?

kirkbushell commented 10 years ago

@valllabh what's the need for a hook for modifying configurations? Configuration I suspect should be available as the various classes are utilised.

valllabh commented 10 years ago

@kirkbushell please read "Registering your own DQL functions" >> http://doctrine-orm.readthedocs.org/en/latest/cookbook/dql-user-defined-functions.html

Developer may need to modify config object. it seems there is no other way to do this...

kirkbushell commented 10 years ago

@valllabh ah cool, that makes sense. I can include that in the configuration updates I think... will have a play :)

mitchellvanw commented 7 years ago

Closing because project is no longer maintained. Thanks.