src/Jms/YamlValidatorConverter.php
private function loadValidatorAttribute(array &$property, AttributeItem $attribute)
    {
        /* @var $element Element */
        $type = $attribute->getType();

        $this->loadValidatorType($property, $type, false);

        // Required properties
        if ($attribute instanceof Attribute) {
            if ($attribute->getUse() === Attribute::USE_REQUIRED) {
                $property['validation'][] = [
                    'NotNull' => null
                ];
            }
        }
    }
private function loadValidatorAttribute(array &$property, AttributeItem $attribute)
    {
        /* @var $element Element */
        $type = $attribute->getType();

        $this->loadValidatorType($property, $type, false);

        // Required properties
        if ($attribute instanceof Attribute) {
            if ($attribute->getUse() === Attribute::USE_REQUIRED) {
                $property['validation'][] = [
                    'NotNull' => null
                ];
            }
        }
    }
private function loadValidatorAttribute ( array & $ property , AttributeItem $ attribute ) { /* @var $element Element */ $ type = $ attribute -> getType ( ) ; $ this -> loadValidatorType ( $ property , $ type , false ) ; // Required properties if ( $ attribute instanceof Attribute ) { if ( $ attribute -> getUse ( ) === Attribute :: USE_REQUIRED ) { $ property [ 'validation' ] [ ] = [ 'NotNull' => null ] ; } } }
Load and convert XSD' restrictions to Symfony Validation Constraints
from a schema attribute including required rule

@param array $property
@param AttributeItem $element
@param boolean $arrayize
Load and convert XSD restrictions to Symfony Validation Constraints from a schema attribute including required rule