Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
validateDataFieldNotPrefixedByEntityName example
$this
->
validateStruct
(
$struct
,
$definition
)
)
;
$violations
[
$definition
->
getClass
(
)
]
=
array_merge
(
$violations
[
$definition
->
getClass
(
)
]
,
$this
->
findEntityNotices
(
$struct
,
$definition
)
)
;
}
$notices
[
$definition
->
getClass
(
)
]
=
array_merge_recursive
(
$violations
[
$definition
->
getClass
(
)
]
,
$this
->
validateDataFieldNotPrefixedByEntityName
(
$definition
)
)
;
$notices
[
$definition
->
getClass
(
)
]
=
array_merge_recursive
(
$violations
[
$definition
->
getClass
(
)
]
,
$this
->
checkParentDefinition
(
$definition
)
)
;
$violations
=
array_merge_recursive
(
$violations
,
$this
->
validateAssociations
(
$definition
)
)
;
if
(
is_subclass_of
(
$definition
, EntityTranslationDefinition::
class
)
)
{
$violations
=
array_merge_recursive
(
$violations
,
$this
->
validateEntityTranslationGettersAreNullable
(
$definition
)
)
;