public static function validateUndergradDegree(Entity\UndergradDegree $object, ExecutionContextInterface $context)
 {
     if (self::$runValidateUndergradDegree) {
         if ($object->isUk()) {
             $context->validate($object, '', 'CsrUKUndergradDegree', true);
         } else {
             $context->validate($object, '', 'CsrNonUKUndergradDegree', true);
         }
     }
 }
Пример #2
0
 /**
  * @param ExecutionContextInterface $executionContext
  * @Assert\Callback()
  */
 public function _validateType(ExecutionContextInterface $executionContext)
 {
     $executionContext->validate($this, '', [$this->isCurrentJob() ? 'Default' : 'dateTo'], true);
 }