Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getCustomFieldsAware example
$entity
->
setFields
(
$fields
)
;
static
::
assertEquals
(
$fields
,
$entity
->
getFields
(
)
)
;
$flags
=
[
]
;
$entity
->
setFlags
(
$flags
)
;
static
::
assertEquals
(
$flags
,
$entity
->
getFlags
(
)
)
;
$entity
->
setCustomFieldsAware
(
true
)
;
static
::
assertTrue
(
$entity
->
getCustomFieldsAware
(
)
)
;
$entity
->
setLabelProperty
(
'name'
)
;
static
::
assertEquals
(
'name',
$entity
->
getLabelProperty
(
)
)
;
}
}