<commit_before><?php
namespace AppBundle\Repository;
/**
 * LignePanierRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class LignePanierRepository extends \Doctrine\ORM\EntityRepository
{
    // PRoblem here !
    public function find_lines($panier_id)
    {
        $sql = '	SELECT p
					FROM AppBundle:LignePanier p
					LEFT JOIN p.sandwich s
					LEFT JOIN s.SandwichGarniture sg
					LEFT JOIN s.pain pain
					WHERE p.panier = :id_panier';
        // $sql =
        // SELECT DISTINCT *
        // FROM ligne_panier
        // LEFT JOIN sandwich ON ligne_panier.sandwich_id = sandwich.id
        // LEFT JOIN sandwich_garniture ON sandwich_garniture.sandwich_id = sandwich.id
        // LEFT JOIN pain ON sandwich.pain_id = pain.id
        // WHERE ligne_panier.id = :panier_id
        return $this->getEntityManager()
            ->createQuery($sql)
            ->setParameter(':id_panier', $panier_id)
            ->getResult();
    }
}<commit_msg>Fixed missing }<commit_after><?php
namespace AppBundle\Repository;
/**
 * LignePanierRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class LignePanierRepository extends \Doctrine\ORM\EntityRepository
{
    // PRoblem here !
    public function find_lines($panier_id)
    {
     	
        $sql =
        'SELECT DISTINCT *
        FROM ligne_panier
        LEFT JOIN sandwich ON ligne_panier.sandwich_id = sandwich.id
        LEFT JOIN sandwich_garniture ON sandwich_garniture.sandwich_id = sandwich.id
        LEFT JOIN pain ON sandwich.pain_id = pain.id
        WHERE ligne_panier.id = :panier_id';

        $em = $this->getEntityManager();
        $dbh = $em->getConnection();
        $query = $dbh->prepare($sql);
        $results = $query->execute([":panier_id" => $panier_id]);
        $results = $query->fetchAll();

        return $results;
    }
}
{'fraction_non_alphanumeric': 0.10112936344969199, 'fraction_numerical': 0.0, 'mean_word_length': 2.5436363636363635, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2268719', 'n_tokens_mistral': 630, 'n_tokens_neox': 585, 'n_words': 150}