public function validate(ErrorElement $errorElement, $object) { $errorElement->assertCallback(array('validateOneMainCategory')); }