Im using PHP Active Record - Does anyone know how you kill a connection? I need to kill it, so I can re-connect and have a fresh connection rather than leave it idle until it expires.
This is how I instantiate it:
ActiveRecord\Config::initialize(function($cfg) {
$cfg->set_model_directory(APPLICATION_PATH . 'model');
$cfg->set_connections(array('development' => DB_TYPE.'://'.DB_USER.':'.DB_PASS.'@'.DB_HOST.'/'.DB_NAME));
});
I have tried this, yet it is not a method:
ActiveRecord\ConnectionManager::drop_connection();