Welcome Guest, Not a member yet? Register   Sign In
Datamapper ORM: relationship defined as a String
#1

[eluser]emorling[/eluser]
I have a database table that uses strings as primary key. Is it possible to configure Datamapper to create a relationship using a string, rather than an int? Thanks
#2

[eluser]WanWizard[/eluser]
No, Datamapper requires the primary key to be called 'id', and be an int auto increment.
#3

[eluser]emorling[/eluser]
Thanks for reply




Theme © iAndrew 2016 - Forum software by © MyBB