2006-12-04 02:40:32 +03:00
|
|
|
<?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);
|
2006-12-16 01:31:28 +03:00
|
|
|
|
|
|
|
// an example using the create method
|
|
|
|
// here we simple fetch all users
|
|
|
|
$users = Doctrine_Query::create()->from('User')->execute();
|
2006-12-04 02:40:32 +03:00
|
|
|
?>
|