1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/manual/codes/Basic Components - Query - Introduction.php
2006-12-15 22:31:28 +00:00

13 lines
405 B
PHP

<?php
// initalizing a new Doctrine_Query (using the current connection)
$q = new Doctrine_Query();
// initalizing a new Doctrine_Query (using custom connection parameter)
// here $conn is an instance of Doctrine_Connection
$q = new Doctrine_Query($conn);
// an example using the create method
// here we simple fetch all users
$users = Doctrine_Query::create()->from('User')->execute();
?>