I found the error. After analyze carefully doctrine_orm.local.php file, I
realized that there were 2 'configuration' attribute. The second occurrence
(that was overriding the first one) did not contain the custom functions
properties. I simply merged these two 'configuration' properties and custom
functions started to work.

Thanks to all that helped me


2014-03-16 18:07 GMT-03:00 Marco Pivetta <[email protected]>:

> Hey Diogo,
>
> Yes, this is usually due to either:
>
>  - config caching (turn it off in dev, remember to clear caches on
> deployments!)
>  - wrong file extension/name
>  - missing return value in the config file that you've put in
> `config/autoload`
>  - the config glob paths in `config/application.config.php` is wrong (if
> you're not using defaults)
>
> You should probably grep that output for your setting and see if you used
> the wrong config key.
>
> Cheers,
>
>
> Marco Pivetta
>
> http://twitter.com/Ocramius
>
> http://ocramius.github.com/
>
>
> On 16 March 2014 21:36, Diogo Domanski <[email protected]> wrote:
>
>> Hi Marco,
>>
>> I've printed the merged config and the configuration session is as follows
>> array(19) {
>>   ["doctrine"]=>
>>   array(12) {
>>
>>     ....
>>
>>     ["configuration"]=>
>>     array(2) {
>>       ["orm_default"]=>
>>       array(11) {
>>         ["metadata_cache"]=>
>>         string(5) "array"
>>         ["query_cache"]=>
>>         string(5) "array"
>>         ["result_cache"]=>
>>         string(5) "array"
>>         ["driver"]=>
>>         string(11) "orm_default"
>>         ["generate_proxies"]=>
>>         bool(true)
>>         ["proxy_dir"]=>
>>         string(28) "data/DoctrineORMModule/Proxy"
>>         ["proxy_namespace"]=>
>>         string(23) "DoctrineORMModule\Proxy"
>>         ["filters"]=>
>>         array(0) {
>>         }
>>         ["datetime_functions"]=>
>>         array(0) {
>>         }
>>         ["string_functions"]=>
>>         array(0) {
>>         }
>>         ["numeric_functions"]=>
>>         array(0) {
>>         }
>>       }
>>
>>       ....
>>
>> It seems that the custom functions properties (datetime_functions,
>> numeric_functions, etc) are not being populated as expected. Is the way I'm
>> setting them in doctrine_orm.local.php wrong?
>>
>> Thanks
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "doctrine-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/doctrine-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "doctrine-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/doctrine-user/t1_oT9kHyVI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to