refactor constraint violation hndling to use native symfony wrapper