Skip to content

Validation reference

HierarchyNotCircular

ClassEnhavo\Bundle\FormBundle\Validator\Constraints\HierarchyNotCircular
OptionsparentProperty*, message

parentProperty

type: string

The parent property

yaml
Enhavo\Bundle\PageBundle\Entity\Page:
    constraints:
        - Enhavo\Bundle\FormBundle\Validator\Constraints\HierarchyNotCircular:
              parentProperty: parent
              message: 'Hierarchy circle detected'

message

type: string

Define message if violation was triggered.