sonata-project/SonataAdminBundle — pull request #1306 by luzat (2013-04-23 21:57:16+00:00)
Title: Support for class-level validation

This allows for

$errorElement->addConstraint(new UniqueEntity(['fields' => 'email']));

and similar code without an enclosing ->with().