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

12 lines
226 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
<?php
$manager = Doctrine_Manager::getInstance();
// open new session
$session = $manager->openSession(new PDO("dsn","username","password"));
// getting a table object
$table = $session->getTable("User");
?>