gas-orm icon indicating copy to clipboard operation
gas-orm copied to clipboard

Add field labels

Open camagu opened this issue 12 years ago • 2 comments

Hi toopay, great work!

It will be nice if there was a way to specify label names inside the the fields array. Field names not always represent the label that should be shown in validation errors, and it's not intenationalization friendly. I think I can do some coding if you think it's a feature worth having.

camagu avatar May 16 '12 02:05 camagu

I think I can do some coding if you think it's a feature worth having.

While i used to have field name that always represent label as my own convention, many will need those feature...so @mani-atico , please do :)

toopay avatar May 17 '12 03:05 toopay

Would this be the same as aliasing columns/fields?

I have a legacy database that I'm working with and they have very unconventional naming schemes and I would like to alias some of the fields. For example, the have a businessname in a business table. I would like it to be just name. Their primary id is also pid instead of id. There are other annoying issues as well so something like this would be neat.

mathewpeterson avatar Jun 20 '12 17:06 mathewpeterson