TractorCow\Fluent\Extension\FluentExtension::localiseCondition
Generate a where fragment based on a field with a fallback.
This will be used as a search replacement in all where conditions matching the "Table"."Field" name. Note that unlike localiseSelect, this uses a simple COLASECLE() for performance and to reduce overall query size.
Signature
protected function localiseCondition(string
$table,
string
$field,
Locale
$locale )
Parameters
$table
— string$field
— string$locale
— TractorCow\Fluent\Model\Locale
Returns
- string
- Localised where replacement