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.
