Yes you can use this two database-driver in one project
doctrine:
dbal:
connections:
default:
driver: "%database_driver%"
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8
mapping_types:
enum: string
# if using pdo_sqlite as your database driver, add the path in parameters.yml
# e.g. database_path: "%kernel.root_dir%/data/data.db3"
# path: "%database_path%"
dynamic:
driver: "%database_driver%"
host: "%database_host%"
port: "%database_port%"
dbname:
user: "%database_user%"
password: "%database_password%"
charset: UTF8
mapping_types:
enum: string
wrapper_class: 'My\DoctrineBundle\Connection\ConnectionWrapper'
And you have to add the DoctrineBundle downlaoad and upload to your namesplace as defined in answer of this question
Symfony connection wrapper