* - {@link TraversalStrategy::IMPLICIT} if $traverse is enabled
* - {@link TraversalStrategy::NONE} if $traverse is disabled
*
- * @param Constraint $constraint The constraint to add
- *
* @return $this
*
* @throws ConstraintDefinitionException When trying to add the
));
}
- if ($constraint instanceof Valid) {
+ if ($constraint instanceof Valid && null === $constraint->groups) {
$this->cascadingStrategy = CascadingStrategy::CASCADE;
if ($constraint->traverse) {