diff --git a/System/Pool/ObjectPool.php b/System/Pool/ObjectPool.php index a62b6a58..c49973d2 100644 --- a/System/Pool/ObjectPool.php +++ b/System/Pool/ObjectPool.php @@ -35,7 +35,7 @@ class ObjectPool extends \Snowflake\Abstracts\Pool public function getConnection(array $config, bool $isMaster): mixed { if (is_object($config[0])) { - return $config[0]; + $config[0] = get_class($config[0]) ; } return $this->get(md5($config[0]), $config); }