An error message for Gii

It would be useful if gii showed an error when creating a crud for a table that does not have a primary key that is an integer.

I just used it on a table where the primary key is a varchar. At first it looked like everything was working, but using the varchar as in fails in the routing.

Would be best if Gii warned me about this before hand.