ExecutionContextInterface::getObject()

object|null getObject()

Returns the currently validated object.

If the validator is currently validating a class constraint, the object of that class is returned. If it is a validating a property or getter constraint, the object that the property/getter belongs to is returned.

In other cases, null is returned.

Return Value

object|null The currently validated object or null
doc_Symfony
2016-10-28 06:15:54
Comments
Leave a Comment

Please login to continue.