private function getColumns() { $columns =
$this->connection->
query('SHOW COLUMNS FROM s_articles_attributes'
)->
fetchAll(PDO::FETCH_ASSOC
);
$columns =
array_column($columns, 'Field'
);
$mapping =
[];
foreach ($columns as $column) { $mapping[$column] =
$column;
$camelCase =
$this->
underscoreToCamelCase($column);
$mapping[$camelCase] =
$column;
} return $mapping;
} /**
* @param string $underscored
*
* @return string
*/