1
0
mirror of synced 2025-01-19 06:51:40 +03:00
doctrine2/manual/codes/Basic Components - Query - Method overloading.php

13 lines
300 B
PHP
Raw Normal View History

2006-07-23 21:08:06 +00:00
<?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();
?>