Hi there,
first of all: thanks for providing DataMapper, I really enjoy the functionality and your support.
Now I got a head-scratcher: I am currently writing an auth lib for myself and I am getting this error:
ErrorException [ Fatal Error ]: Call to undefined method CI_DB_mysql_driver::dm_call_method()
FCPATH/application/libraries/datamapper.php [ 1113 ]
1108 register_shutdown_function(array($CI->db, 'close'));
1109 $CI->db->_has_shutdown_hook = TRUE;
1110 }
1111 // clone, so we don't create additional connections to the DB
1112 $this->db = clone($CI->db);
1113 $this->db->dm_call_method('_reset_select');
1114 }
1115 else
1116 {
1117 // connecting to a different database, so we *must* create additional copies.
1118 // It is up to the developer to close the connection!
I searched the web and the forums and the only thing I found was: Bootstrapper not included, but it is in my index.php:
/* --------------------------------------------------------------------
* LOAD THE DATAMAPPER BOOTSTRAP FILE
* --------------------------------------------------------------------
*/
require_once APPPATH.'third_party/datamapper/bootstrap.php';
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*
*/
require_once BASEPATH.'core/CodeIgniter.php';
I am not auto-loading any models.
I thought a moment if my php version does not support heredoc, but dismissed this though (running 5.3.10 on ubuntu) and still, I have no idea what the problem might be. Most of the time it plain works as it should, but right now, I am getting this error, always on the same controller function call. Disappointingly enough, I thought it was ion_auth interfering with datamapper, that’s why I wrote my own auth lib working very closely with Datamapper ORM, but now that I switch from ion_auth to my library I am getting the same errors (not sure if at the same spot, it has been some time).
Any pointers? The third_party/datamapper/system/DB_driver.php is definitely loaded, since it throws errors when I change something in there.
Thanks in advance,
puk