13 lines
300 B
PHP
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();
|
||
|
?>
|