Welcome Guest, Not a member yet? Register   Sign In
Multiple databases and db_params with Datamapper
#6

[eluser]xylude[/eluser]
I hate to bump an old topic like this, but I am having the same exact problem. I've downloaded the latest DM from Bitbucket and still cannot get my DM to connect to multiple databases.

Here is my 'database.php' file:

http://pastie.org/5388841

And my model:

Code:
class Module extends DataMapper {
    public $db_params = 'ohm';
    public $has_one = array();
    public $has_many = array();
}

When I try and run it I get the following error:

Error Number: 1146
Table 'db1.modules' doesn't exist

Please help, I've tried everything I can think of.


Messages In This Thread
Multiple databases and db_params with Datamapper - by El Forum - 08-25-2012, 11:43 AM
Multiple databases and db_params with Datamapper - by El Forum - 08-29-2012, 01:45 AM
Multiple databases and db_params with Datamapper - by El Forum - 08-29-2012, 01:49 AM
Multiple databases and db_params with Datamapper - by El Forum - 08-29-2012, 01:52 AM
Multiple databases and db_params with Datamapper - by El Forum - 08-29-2012, 06:31 AM
Multiple databases and db_params with Datamapper - by El Forum - 11-16-2012, 11:38 AM
Multiple databases and db_params with Datamapper - by El Forum - 11-16-2012, 04:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB