Welcome Guest, Not a member yet? Register   Sign In
DMZ question - can I use singular table names?
#1

[eluser]nottRobin[/eluser]
Hi.

In "DataMapper OverZealous Edition", you can create a Model with the name "User" and it will assume that the related database table is called "users".

Is there any way that I can ask it to use the singular instead of the plural? So if I want my model 'User' to relate to my table 'user'?

I know I can override it with:
Code:
var $table = 'user';
But it would be nice if I could change the rule as a whole instead?

Cheers,
Robin.




Theme © iAndrew 2016 - Forum software by © MyBB