for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Entité Material.
*
* PHP Version 5
* @author Quétier Laurent <[email protected]>
* @copyright 2014 Dev-Int GLSR
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version GIT: <git_id>
* @link https://github.com/Dev-Int/glsr
*/
namespace AppBundle\Repository\Config;
use Doctrine\ORM\EntityRepository;
* MaterialRepository
* @category Entity
class MaterialRepository extends EntityRepository
{
* Affiche les matières.
* @return QueryBuilder Requête DQL
public function getAllItems()
$query = $this->createQueryBuilder('m')
->join('m.articles', 'a')
->addSelect('a')
->join('m.unitStorage', 'u')
->addSelect('u')
;
return $query;
}
* Affiche les matières actives.
public function getItems()
$query = $this->getAllItems();