1
0
mirror of synced 2025-01-29 19:41:45 +03:00

fixes #400 use new syntax for connection

This commit is contained in:
meus 2007-07-21 16:43:40 +00:00
parent eca9f79dc8
commit 6919788903

View File

@ -28,8 +28,7 @@ Now we would like to convert it into Doctrine record class. It can be achieved e
require_once('lib/Doctrine.php');
spl_autoload_register(array('Doctrine', 'autoload'));
$conn = Doctrine_Manager::connection(new Doctrine_Db('mysql://root:dc34@localhost/test'));
$conn = Doctrine_Manager::connection('mysql://root:dc34@localhost/test');
// import method takes one parameter: the import directory (the directory where
// the generated record files will be put in