1
0
mirror of synced 2025-01-31 04:21:44 +03:00
doctrine2/manual/codes/Basic Components - Query - Method overloading.php
2006-07-23 21:08:06 +00:00

13 lines
300 B
PHP

<?php
$session = Doctrine_Manager::getInstance()->openSession(new PDO("dsn","username","password"));
$query = new Doctrine_Query($session);
$query->from("User-b")
->where("User.name LIKE 'Jack%'")
->orderby("User.created");
->limit(5);
$users = $query->execute();
?>