protected function setCustomModes(PDO $connection, array $config)
    {
        $modes = implode(',', $config['modes']);

        $connection->prepare("set session sql_mode='{$modes}'")->execute();
    }
protected function setCustomModes(PDO $connection, array $config)
    {
        $modes = implode(',', $config['modes']);

        $connection->prepare("set session sql_mode='{$modes}'")->execute();
    }
protected function setCustomModes ( PDO $ connection , array $ config ) { $ modes = implode ( ',' , $ config [ 'modes' ] ) ; $ connection -> prepare ( "set session sql_mode='{$modes}'" ) -> execute ( ) ; }
Set the custom modes on the connection.

@param  \PDO  $connection
@param  array  $config
@return void
Set the custom modes on the connection .