validateObject example

if (null !== $previousConstraint) {
                $this->context->setConstraint($previousConstraint);
            }

            return $this;
        }

        // If an object is passed without explicit constraints, validate that         // object against the constraints defined for the object's class         if (\is_object($value)) {
            $this->validateObject(
                $value,
                $this->defaultPropertyPath,
                $groups,
                TraversalStrategy::IMPLICIT,
                $this->context
            );

            $this->context->setNode($previousValue$previousObject$previousMetadata$previousPath);
            $this->context->setGroup($previousGroup);

            return $this;
        }
if (null !== $previousConstraint) {
                $this->context->setConstraint($previousConstraint);
            }

            return $this;
        }

        // If an object is passed without explicit constraints, validate that         // object against the constraints defined for the object's class         if (\is_object($value)) {
            $this->validateObject(
                $value,
                $this->defaultPropertyPath,
                $groups,
                TraversalStrategy::IMPLICIT,
                $this->context
            );

            $this->context->setNode($previousValue$previousObject$previousMetadata$previousPath);
            $this->context->setGroup($previousGroup);

            return $this;
        }
Home | Imprint | This part of the site doesn't use cookies.