ClassMetadata::addPropertyConstraint()

ClassMetadata addPropertyConstraint(string $property, Constraint $constraint)

Adds a constraint to the given property.

Parameters

string $property The name of the property
Constraint $constraint The constraint

Return Value

ClassMetadata This object
doc_Symfony
2016-10-28 06:08:53
Comments
Leave a Comment

Please login to continue.