<commit_before><?php

namespace Application\Repository;

class CountryRepository extends AbstractRepository
{
    use Traits\OrderedByName;

    public function getAllWithPermission($action = 'read', $search = null)
    {
        return $this->findAll();
    }
}<commit_msg>Countries were not searchable<commit_after><?php

namespace Application\Repository;

class CountryRepository extends AbstractRepository
{

    public function getAllWithPermission($action = 'read', $search = null)
    {
        $qb = $this->createQueryBuilder('country')
                ->orderBy('country.name');

        $this->addSearch($qb, $search);

        return $qb->getQuery()->getResult();
    }

}
{'fraction_non_alphanumeric': 0.12298682284040996, 'fraction_numerical': 0.0, 'mean_word_length': 3.6530612244897958, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3140602', 'n_tokens_mistral': 189, 'n_tokens_neox': 185, 'n_words': 40}