Doctrine DateInterval in QueryBuilder

Doctrine 2 supports FieldType “interval” and it is stored in DB as varchar “+P00Y00M168DT00H00M00S”

For Entity’s this is enough to add this to an DateTime-Object.

But i wonder why this can’t used in QueryBuilder.
Should i create a Custom DQL-Function for Query?

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *