src/Jedrzej/Searchable/Constraint.php
protected function splitRelationField($field)
    {
        $parts = explode(':', $field);
        $partsCount = count($parts);

        return [implode('.', array_slice($parts, 0, $partsCount - 1)), $parts[$partsCount - 1]];
    }
protected function splitRelationField($field)
    {
        $parts = explode(':', $field);
        $partsCount = count($parts);

        return [implode('.', array_slice($parts, 0, $partsCount - 1)), $parts[$partsCount - 1]];
    }
protected function splitRelationField ( $ field ) { $ parts = explode ( ':' , $ field ) ; $ partsCount = count ( $ parts ) ; return [ implode ( '.' , array_slice ( $ parts , 0 , $ partsCount - 1 ) ) , $ parts [ $ partsCount - 1 ] ] ; }
Splits given field name containing relation name into relation name and field name
@param string $field field name
@return array relation name at index 0, field name at index 1
Splits given field name containing relation name into relation name and field name