HierarchyNotCircular

Applies to class
Options
Class Enhavo\Bundle\FormBundle\Validator\Constraints\HierarchyNotCircular
Validator Enhavo\Bundle\FormBundle\Validator\Constraints\HierarchyNotCircularValidator
Enhavo\Bundle\PageBundle\Entity\Page:
    constraints:
        - Enhavo\Bundle\FormBundle\Validator\Constraints\HierarchyNotCircular:
              parentProperty: parent
              message: 'Hierarchy circle detected'

Options

parentProperty

type: string default: parent

The parent property

message

type: string default: Hierarchy circle detected

Define message if violation was triggered.