Welcome Guest, Not a member yet? Register   Sign In
Can't find table in datamapper 1.8.1 [solved]
#1

[eluser]phranx[/eluser]
Hey guys,
first of all I'd like to thank Wan and all the guys who contribuited to this library: I can write code faster and, without the pain of filtering results sets I'm also healthier Smile

However, I got a problem with table names on my 2 environments.

I was able to configure datamapper to work on my local server:
I got a users table, and a groups table (with a N:1 relation). Both tables are named in lower-case
I edited the provided _template class to match my relationship schema and the application works perfectly.

Then I put all my files on my kodingen account and I set up the database config file properly, but when I try to list the groups I got this

Quote:Error Number: 1146
Table 'my_kodingen_db_name.Groups' doesn't exist

So... it seems that datamapper is looking for a capitalized table name... and infact I tried to rename the table into Groups and it works.

Have you got any advice for this odd behaviour?

Thanks in advance
Francesco


Messages In This Thread
Can't find table in datamapper 1.8.1 [solved] - by El Forum - 07-09-2011, 01:53 AM
Can't find table in datamapper 1.8.1 [solved] - by El Forum - 07-09-2011, 04:28 AM
Can't find table in datamapper 1.8.1 [solved] - by El Forum - 07-09-2011, 09:55 AM
Can't find table in datamapper 1.8.1 [solved] - by El Forum - 07-10-2011, 03:46 AM
Can't find table in datamapper 1.8.1 [solved] - by El Forum - 07-11-2011, 01:32 AM
Can't find table in datamapper 1.8.1 [solved] - by El Forum - 07-11-2011, 02:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB