TractorCow\Fluent\Extension\FluentExtension::detectLocalisedTableField
Detect a localised field within a SQL fragment.
Works with either select / sort fragments If successful, return an array [ thetable, thefield, fqn ] Otherwise [ null, null ]
Signature
protected function detectLocalisedTableField(array
$tables,
string
$sql )
Parameters
$tables
— array- Map of known table and nested fields to search
$sql
— string- The SQL string to inspect
Returns
- array
- Three item array with table and field and a flag for whether the fragment is fully quolified