Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 20 lines (16 sloc) 0.615 kb
7c0c57c @beberlei Initial code
beberlei authored
1 <?php
2 // list_bugs.php
3 require_once "bootstrap.php";
4
5 $dql = "SELECT b, e, r FROM Bug b JOIN b.engineer e JOIN b.reporter r ORDER BY b.created DESC";
6
7 $query = $entityManager->createQuery($dql);
8 $query->setMaxResults(30);
9 $bugs = $query->getResult();
10
11 foreach($bugs AS $bug) {
12 echo $bug->getDescription()." - ".$bug->getCreated()->format('d.m.Y')."\n";
13 echo " Reported by: ".$bug->getReporter()->getName()."\n";
14 echo " Assigned to: ".$bug->getEngineer()->getName()."\n";
15 foreach($bug->getProducts() AS $product) {
16 echo " Platform: ".$product->getName()."\n";
17 }
18 echo "\n";
19 }
Something went wrong with that request. Please try again.