1
0
mirror of synced 2025-01-19 15:01:40 +03:00
doctrine2/manual/codes/Basic Components - Query - Introduction.php

13 lines
405 B
PHP
Raw Normal View History

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