Re: [symfony-users] [S2] Doctine2 function addCustomDatetimeFunction

2011-04-11 Thread Christophe Beyer
Right, I had a tab at this line. Thanks ! Ok for the DQL functions, I don't want to upgrade my PR6, so I'll wait the first RC :) -- Christophe Beyer cbe...@cap-tic.fr Le 8 avr. 2011 à 18:21, Christophe COEVOET a écrit : > Le 08/04/2011 18:03, Christophe Beyer a écrit : >> >> Ok thanks,

Re: [symfony-users] [S2] Doctine2 function addCustomDatetimeFunction

2011-04-08 Thread Christophe COEVOET
Le 08/04/2011 18:03, Christophe Beyer a écrit : Ok thanks, but I'm using the PR6, and with the following syntax (without the dql instructions) : doctrine.orm: entity_managers: default: mappings: YamlBundle: ~ I've got this error : *Fatal error*: Uncaught exce

Re: [symfony-users] [S2] Doctine2 function addCustomDatetimeFunction

2011-04-08 Thread Christophe Beyer
Ok thanks, but I'm using the PR6, and with the following syntax (without the dql instructions) : doctrine.orm: entity_managers: default: mappings: YamlBundle: ~ I've got this error : Fatal error: Uncaught exception 'Symfony\Component\Yaml\ParserException' with

Re: [symfony-users] [S2] Doctine2 function addCustomDatetimeFunction

2011-04-05 Thread Christophe COEVOET
Le 05/04/2011 15:03, Christophe Beyer a écrit : I want to use the Doctrine function addCustomDatetimeFunction on my EntityManager. I tried this : $config = new \Doctrine\ORM\Configuration(); $config->addCustomDatetimeFunction('MONTH', 'Doctrine\ORM\Query\AST\Functions\Month'); // My custom fu