Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setLabelProperty 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
(
)
)
;
}
}