By default it does not support platform specific functions, you need to download and install this extensions: https://github.com/beberlei/DoctrineExtensions/blob/master/src/Query/Mysql/DateAdd.php https://github.com/beberlei/DoctrineExtensions/tree/master/src/Query/Mysql see this: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/dql-user-defined-functions.html
On Mon, Jul 13, 2015 at 7:51 PM, Leandro Oliveira <[email protected]> wrote: > > > I solved with doctirne 2.5 > > [...] where DATE_ADD (dateInit, 3600, 'SECOND') = dateFin > > The version 2.4 don't have support for function DATE_ADD to SECOND or > Minutes > > > > Em segunda-feira, 13 de julho de 2015 08:26:33 UTC-3, Leandro Oliveira > escreveu: >> >> Hi, >> >> I want extract the difference in hours between two fields datetime by >> doctrine. How ? >> >> For example: >> >> 2015-07-12 03:00:00 - 2015-07-12 02:00:00 = 01:00:00 >> >> 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 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.
