DefaultTranslator
in favor of Symfony\Component\Translation\IdentityTranslator
Is
-prefixed equivalentFileValidator
disallow empty filesUserPasswordValidator
source message changeExecutionContextInterface::setConstraint()
ConstraintViolation::getConstraint()
ExpressionValidator
will now evaluate the Expression even when the property value is null or an empty stringClassMetadata::hasMemberMetadatas()
ClassMetadata::getMemberMetadatas()
ClassMetadata::addMemberMetadata()
Mapping\MetadataInterface::getConstraints()
ConstraintViolationBuilderInterface::setCause()
ApcCache
in favor of DoctrineCache
DoctrineCache
to adapt any Doctrine cacheGroupSequence
now implements ArrayAccess
, Countable
and Traversable
ClassMetadata::getGroupSequence()
to return a GroupSequence
instance instead of an arrayCallback
can now be put onto properties (useful when you pass a closure to the constraint)ClassBasedInterface
MetadataInterface
PropertyMetadataInterface
PropertyMetadataContainerInterface
Mapping\ElementMetadata
Mapping\MetadataInterface
Mapping\ClassMetadataInterface
Mapping\PropertyMetadataInterface
Mapping\GenericMetadata
Mapping\CascadingStrategy
Mapping\TraversalStrategy
Mapping\ClassMetadata::accept()
Mapping\MemberMetadata::accept()
Mapping\ClassMetadata::setGroupSequence()
MetadataFactoryInterface
Mapping\BlackholeMetadataFactory
Mapping\ClassMetadataFactory
Mapping\Factory\MetadataFactoryInterface
Mapping\Factory\BlackHoleMetadataFactory
Mapping\Factory\LazyLoadingMetadataFactory
ExecutionContextInterface
ExecutionContext
GlobalExecutionContextInterface
Context\ExecutionContextInterface
Context\ExecutionContext
Context\ExecutionContextFactoryInterface
Context\ExecutionContextFactory
ValidatorInterface
Validator
ValidationVisitorInterface
ValidationVisitor
Validator\ValidatorInterface
Validator\RecursiveValidator
Validator\ContextualValidatorInterface
Validator\RecursiveContextualValidator
Violation\ConstraintViolationBuilderInterface
Violation\ConstraintViolationBuilder
ConstraintViolation::getParameters()
ConstraintViolation::getPlural()
Constraints\Traverse
$deep
property in Constraints\Valid
ValidatorBuilderInterface::setApiVersion()
Validation::API_VERSION_2_4
Validation::API_VERSION_2_5
Exception\OutOfBoundsException
Exception\UnsupportedMetadataException
Exception\ValidatorException
extend Exception\RuntimeException
Util\PropertyPath
ValidatorBuilder::setPropertyAccessor()
validate
and validateValue
on Validator\Context\ExecutionContext
use getValidator()
together with inContext()
insteadminRatio
, maxRatio
, allowSquare
, allowLandscape
, and allowPortrait
to Image validatorOptional
and Required
to the
Symfony\Component\Validator\Constraints\
namespace and deprecated the original
classes.Validator
to ValidatorInterface
ConstraintViolation
to the new ConstraintViolationInterface
ConstraintViolationList
to the new ConstraintViolationListInterface
ExecutionContext
to the new ExecutionContextInterface
ConstraintValidatorInterface::initialize
is now type hinted against ExecutionContextInterface
instead of ExecutionContext
Validator
from protected to privateClassMetadataFactoryInterface
in favor of the new MetadataFactoryInterface
ClassMetadataFactory::getClassMetadata
in favor of getMetadataFor
MetadataInterface
, PropertyMetadataInterface
, ClassBasedInterface
and PropertyMetadataContainerInterface
GraphWalker
in favor of the new ValidationVisitorInterface
ExecutionContext::addViolationAtPath
ExecutionContext::addViolationAtSubPath
in favor of ExecutionContextInterface::addViolationAt
ExecutionContext::getCurrentClass
in favor of ExecutionContextInterface::getClassName
ExecutionContext::getCurrentProperty
in favor of ExecutionContextInterface::getPropertyName
ExecutionContext::getCurrentValue
in favor of ExecutionContextInterface::getValue
ExecutionContext::getGraphWalker
in favor of ExecutionContextInterface::validate
and ExecutionContextInterface::validateValue
ValidatorInterface::validateValue
to accept arrays of constraintsValidatorInterface::getMetadataFactory
to return a MetadataFactoryInterface
instead of a ClassMetadataFactoryInterface
ClassMetadataFactoryInterface
type hint from ValidatorBuilderInterface::setMetadataFactory
.
As of Symfony 2.3, this method will be typed against MetadataFactoryInterface
instead.traverse
and deep
in the Valid
constraint and in GraphWalker::walkReference
are ignored for arrays now. Arrays are always traversed recursively.$message
in the constructor of ConstraintViolation
$translator
and $translationDomain
in the constructor of ExecutionContext
$translator
and $translationDomain
in the constructor of GraphWalker
$translator
and $translationDomain
in the constructor of ValidationVisitor
$translator
and $translationDomain
in the constructor of Validator
setTranslator()
and setTranslationDomain()
to ValidatorBuilderInterface
ctype_*
assertions in TypeValidator
extraFieldsMessage
and missingFieldsMessage
in Collection constraintsetMessage
, getMessageTemplate
and
getMessageParameters
isValid
has been renamed to
validate
, its return value was dropped. ConstraintValidator still contains
isValid
for BCValid
are not traversed
recursively anymore by default. Valid
contains a new property deep
which enables the BC behavior.