Search code examples
sorm

SORM: Mapping fields to custom column names?


From the SORM documentation, it's not really clear and the API does not help.

So, how do I specify a custom column name in an entity? I would also like to change the column name of the primary key for each entity. Is that possible?

Thanks.


Solution

  • No. Changing column names isn't possible because SORM is all about convention over configuration. That's what makes it simple.

    The primary key isn't configurable either, but for different reasons.