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

This allows for

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

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