Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
resolveJsonField example
if
(
$field
instanceof TranslatedField &&
$definition
->
getTranslationDefinition
(
)
)
{
$field
=
$definition
->
getTranslationDefinition
(
)
->
getFields
(
)
->
get
(
$field
->
getPropertyName
(
)
)
;
}
if
(
$field
=== null
)
{
continue
;
}
if
(
$field
instanceof JsonField
)
{
$attributes
[
]
=
$this
->
resolveJsonField
(
$field
)
;
continue
;
}
$attr
=
$this
->
getPropertyByField
(
$field
)
;
if
(
\
in_array
(
$field
->
getPropertyName
(
)
,
[
'createdAt', 'updatedAt'
]
, true
)
||
$this
->
isWriteProtected
(
$field
)
)
{
$attr
->readOnly = true;
}
if
(
$this
->
isDeprecated
(
$field
)
)
{