Hi,
I'm trying to use the orm with already existing rails database, but the orm uses created and modified fields instead of rails ones created_at and updated_at.
It would be very useful to be able to make the orm use different database field names from haxe field names.
Maybe something like:
manager.aliases.set("created", "created_at");
manager.aliases.set("modified", "updated_at");
or even a compile time macro
@aliases("created"="created_at", "modified"="updated_at")
class MyModel extends Object {}
What do you think?
Hi,
I'm trying to use the orm with already existing rails database, but the orm uses
createdandmodifiedfields instead of rails onescreated_atandupdated_at.It would be very useful to be able to make the orm use different database field names from haxe field names.
Maybe something like:
or even a compile time macro
What do you think?