You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(doctrine): make DateFilter standalone, drop AbstractFilter
DateFilter (ORM + ODM) stops extending the deprecated AbstractFilter, the
last of the three 5.0 survivors (after ExistsFilter). It stays a genuine
survivor rather than a ComparisonFilter overlay: its date semantics —
isDateField, \DateTime/\DateTimeImmutable coercion by column immutability,
typed setParameter, and the INCLUDE_NULL_* null-management — are not
expressible through ComparisonFilter.
The decouple is structural: the AbstractFilter::apply() loop is reintroduced
as a local apply() (driving filterProperty over $context['filters'], the
universal value source for both legacy and QueryParameter declarations), and
the inherited helpers (ctor, properties accessors, isPropertyEnabled,
name-converter handling, logger) are inlined. ManagerRegistryAwareInterface
is kept for BC injection and the deprecated getDescription(); the ORM filter
reads class metadata from $queryBuilder->getEntityManager() so the active
path no longer depends on the registry, while ODM keeps it (its aggregation
Builder exposes no DocumentManager).
* The date filter allows to filter a collection by date intervals.
@@ -120,20 +129,101 @@
120
129
* @author Kévin Dunglas <dunglas@gmail.com>
121
130
* @author Théo FIDRY <theo.fidry@gmail.com>
122
131
* @author Alan Poulain <contact@alanpoulain.eu>
123
-
*
124
-
* @deprecated since API Platform 4.4: extending {@see AbstractFilter} is deprecated. In 5.0 this filter is rewritten as a standalone overlay over {@see ComparisonFilter} (translating the `[before]`/`[strictly_before]`/`[after]`/`[strictly_after]` syntax) — same class name, same URL syntax, drop-in. Declare it through a QueryParameter to migrate.
* The date filter allows to filter a collection by date intervals.
@@ -124,12 +136,11 @@
124
136
*
125
137
* @author Kévin Dunglas <dunglas@gmail.com>
126
138
* @author Théo FIDRY <theo.fidry@gmail.com>
127
-
*
128
-
* @deprecated since API Platform 4.4: extending {@see AbstractFilter} is deprecated. In 5.0 this filter is rewritten as a standalone overlay over {@see ComparisonFilter} (translating the `[before]`/`[strictly_before]`/`[after]`/`[strictly_after]` syntax) — same class name, same URL syntax, drop-in. Declare it through a QueryParameter to migrate.
0 commit comments