public function setDatabase($database) { $this->ensureDatabase($database); $this->database = $database; }