protected function buildValidationRules()
    {
        $rules = new RuleList();

        $options = $this->getOptions();
        $options[self::OPTION_ENTITY_TYPES] = $this->getEmbeddedEntityTypeMap();

        $rules->push(
            new EmbeddedEntityListRule('valid-embedded-entity-list-data', $options)
        );

        return $rules;
    }
protected function buildValidationRules()
    {
        $rules = new RuleList();

        $options = $this->getOptions();
        $options[self::OPTION_ENTITY_TYPES] = $this->getEmbeddedEntityTypeMap();

        $rules->push(
            new EmbeddedEntityListRule('valid-embedded-entity-list-data', $options)
        );

        return $rules;
    }
protected function buildValidationRules ( ) { $ rules = new RuleList ( ) ; $ options = $ this -> getOptions ( ) ; $ options [ self :: OPTION_ENTITY_TYPES ] = $ this -> getEmbeddedEntityTypeMap ( ) ; $ rules -> push ( new EmbeddedEntityListRule ( 'valid-embedded-entity-list-data' , $ options ) ) ; return $ rules ; }
Return a list of rules used to validate a specific attribute instance's value.

@return RuleList
Return a list of rules used to validate a specific attribute instance s value .