1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/manual/codes/Basic Components - Connection - Getting a table object.php

12 lines
223 B
PHP

<?php
$manager = Doctrine_Manager::getInstance();
// open new connection
$conn = $manager->openConnection(new PDO("dsn","username","password"));
// getting a table object
$table = $conn->getTable("User");
?>