doctrine returns arrays to allow flexible validation