1
0
mirror of synced 2025-01-25 17:51:39 +03:00
doctrine2/manual/codes/Working with objects - Component overview - Connection - Getting a table object.php

12 lines
223 B
PHP
Raw Normal View History

2006-07-23 21:08:06 +00:00
<?php
$manager = Doctrine_Manager::getInstance();
// open new connection
2006-07-23 21:08:06 +00:00
$conn = $manager->openConnection(new PDO('dsn','username','password'));
2006-07-23 21:08:06 +00:00
// getting a table object
$table = $conn->getTable('User');
2006-07-23 21:08:06 +00:00
?>