We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Get Adapter from $connection

How get Adapter from:

$class = 'Phalcon\Db\Adapter\Pdo\\' . $adapter;
$connection = new $class($database);

in doc not found:

getAdapter();