1 | <?php |
||
25 | class InventoryRepository extends EntityRepository |
||
26 | { |
||
27 | /** |
||
28 | * Affiche tous les inventaires. |
||
29 | * |
||
30 | * @return QueryBuilder Requête DQL |
||
31 | */ |
||
32 | public function getAllItems() |
||
39 | |||
40 | /** |
||
41 | * Affiche les inventaires actifs. |
||
42 | * |
||
43 | * @return QueryBuilder Requête DQL |
||
44 | */ |
||
45 | public function getItems() |
||
52 | |||
53 | /** |
||
54 | * Renvoi les derniers inventaires. |
||
55 | * |
||
56 | * @param integer $count Nombre d'élément à afficher |
||
57 | * @return array Query result |
||
58 | */ |
||
59 | public function getLastInventory($count) |
||
67 | } |
||
68 |