[PR #6742] Add support second, minute, week, year on DATE_ADD and DATE_SUB #10119

Open
opened 2026-01-22 16:06:29 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/6742

State: closed
Merged: Yes


The DATE_ADD and DATE_SUB built-in function of Doctrine supports only the "hour", "month" and "day" intervals. I don't see the point of not having all the intervals available. These should be "minute", "second" and "year". I didn't check compatibility with other database vendors rather than MySQL but I don't think it should be a problem

Cfr Also Ticket https://github.com/doctrine/doctrine2/issues/3698

**Original Pull Request:** https://github.com/doctrine/orm/pull/6742 **State:** closed **Merged:** Yes --- The DATE_ADD and DATE_SUB built-in function of Doctrine supports only the "hour", "month" and "day" intervals. I don't see the point of not having all the intervals available. These should be "minute", "second" and "year". I didn't check compatibility with other database vendors rather than MySQL but I don't think it should be a problem Cfr Also Ticket https://github.com/doctrine/doctrine2/issues/3698
admin added the pull-request label 2026-01-22 16:06:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10119