module/FzyCommon/src/FzyCommon/Service/Update/Base.php
protected function postValidate($valid, Params $params, $options = array())
    {
        if ($valid) {
            foreach ($this->getEntities() as $tag => $entity) {
                $this->em()->persist($entity);
            }
            if (!isset($options[static::OPTION_NO_FLUSH]) || !$options[static::OPTION_NO_FLUSH]) {
                $this->em()->flush();
            }
        }
    }
protected function postValidate($valid, Params $params, $options = array())
    {
        if ($valid) {
            foreach ($this->getEntities() as $tag => $entity) {
                $this->em()->persist($entity);
            }
            if (!isset($options[static::OPTION_NO_FLUSH]) || !$options[static::OPTION_NO_FLUSH]) {
                $this->em()->flush();
            }
        }
    }
Called after all forms have been validated.
Passed the validation result
@param boolean $valid
@param Param   $params