2011-02-01 7 views
2

Doctrine에 대한 예제 문서를보고 있는데, 예제에서는 SQLite를 사용합니다. 호스트, 데이터베이스, 사용자 이름 및 암호가 설정된 MySQL을 사용하도록 어떻게 얻을 수 있습니까? 그들은 다음과 같은 코드를 사용하는 예에서는 Doctrine using MySQL

:

// Database connection information 
$connectionOptions = array(
    ‘driver’ => ‘pdo_sqlite’, 
    ‘path’ => ‘database.sqlite’ 
); 

$em – EntityManager::create($connectionOptions, $config); 

참조 : http://www.slideshare.net/jwage/doctrine-2-not-the-same-old-php-orm

답변

0

AFAIK 교리의 EntityManager의 연결로 DBAL 객체를 사용한다. 그래서 that가 답을 줄 것입니다.