src/FieldHandlers/FieldHandlerFactory.php
public function fieldToDb(CsvField $csvField, $table, string $field = '') : array
    {
        if ('' === $field) {
            $field = $csvField->getName();
        }
        // No options or view is necessary for the fieldToDb currently
        $handler = self::getByTableField($table, $field);

        return $handler->fieldToDb($csvField);
    }
public function fieldToDb(CsvField $csvField, $table, string $field = '') : array
    {
        if ('' === $field) {
            $field = $csvField->getName();
        }
        // No options or view is necessary for the fieldToDb currently
        $handler = self::getByTableField($table, $field);

        return $handler->fieldToDb($csvField);
    }
public function fieldToDb ( CsvField $ csvField , $ table , string $ field = '' ) : array { if ( '' === $ field ) { $ field = $ csvField -> getName ( ) ; } // No options or view is necessary for the fieldToDb currently $ handler = self :: getByTableField ( $ table , $ field ) ; return $ handler -> fieldToDb ( $ csvField ) ; }
Convert field CSV into database fields

**NOTE** For the time-being, we are not utilizing $table and $field
parameters.  They are here to ease the near-future refactoring
of the FieldHandlerFactory class into a proper (and simple)
factory.

@param \CsvMigrations\FieldHandlers\CsvField $csvField CsvField instance
@param mixed $table Name or instance of the Table
@param string $field Field name
@return mixed[] list of DbField instances
Convert field CSV into database fields