1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/manual/codes/Basic Components - Query - Introduction.php

13 lines
405 B
PHP
Raw Normal View History

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
?>