for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* InventoryRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class InventoryRepository extends EntityRepository
{
* Affiche les inventaires actifs.
* @return QueryBuilder Requête DQL
public function getInventory()
$query = $this->createQueryBuilder('i')
->where('i.status > 0')
->orderBy('i.id', 'DESC')
->getQuery();
return $query->getResult();
}