Fixed #13711 -- Model check added to ensure that auto-generated field name is within limits of the database.

...ion.
I think it's a bit more complicated, see http://stackoverflow.com/a/18036680/5112 for steps involved.