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

[eluser]WanWizard[/eluser]
When you don't specify a table name in the model, the table name is determined using
Code:
$this->table = plural(get_class($this));

plural() is a function in the inflector helper included in the Datamapper distribution that does an strtolower(), so it can't be uppercase. I've checked CI's inflector helper, but that does a conversion to lower case as well (in 2.0.2).

Maybe check what inflector helper you've got installed, and what the result of plural('TEST') is (should be 'tests')?


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