final | |
|---|---|
readonly | |
implements |
ColumnExpressionResolverInterface |
The SDK's answer to odata's expression forward-exit (laravelui5/odata 3.2): a translated column of a localized
model is compared, sorted and searched by its text in the request's language — $filter=name eq 'Mitglied' hits
under de — not by the literal. The joins the expression relies on
are the global scope's ({@see LocalizedScope}), which every query of the model carries. A model whose #[Translatable]
names the property reads its further languages the same way ({@see TranslatedColumns}).
| Methods | ||
|---|---|---|
public
|
__construct(LocalizedTexts $texts, array<class-string, LocalizedTableInterface> $tables, TranslatedColumns $translated)
|
# |
public
|
expression(string $source, string $property): ?string
|
# |