Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getTableConfiguration example
/** * {@inheritdoc} */
public
function
getList
(
$table
)
{
if
(
!
$this
->tableMapping->
isAttributeTable
(
$table
)
)
{
return
[
]
;
}
$columns
=
$this
->tableMapping->
getTableColumns
(
$table
)
;
$configuration
=
$this
->
getTableConfiguration
(
$table
)
;
$items
=
[
]
;
foreach
(
$columns
as
$column
)
{
$name
=
strtolower
(
$column
->
getName
(
)
)
;
$default
=
$column
->
getDefault
(
)
;
if
(
$default
=== 'NULL'
)
{
$default
= null;
}
$item
=
new
ConfigurationStruct
(
)
;