<?php

namespace Lexxpavlov\SettingsBundle\Entity;

use Doctrine\ORM\EntityRepository;

class SettingsRepository extends EntityRepository
{
    /**
     * @param string $name
     * @return Settings[]
     */
    public function getGroup($name)
    {
        return $this->_em
            ->createQuery("SELECT s FROM LexxpavlovSettingsBundle:Settings s INNER JOIN LexxpavlovSettingsBundle:Category g WHERE g.id = s.category AND g.name = ?1")
            ->setParameter(1, $name)
            ->getResult();
    }

    /**
     * @param Settings $setting
     */
    public function save(Settings $setting)
    {
        $this->_em->persist($setting);
        $this->_em->flush();
    }
}

<?php

namespace Lexxpavlov\SettingsBundle\Entity;

use Doctrine\ORM\EntityRepository;

class SettingsRepository extends EntityRepository
{
    /**
     * @param string $name
     * @return Settings[]
     */
    public function getGroup($name)
    {
        return $this->createQueryBuilder('s')
                        ->innerJoin('s.category', 'c')
                        ->where('c.name = :name')
                        ->setParameter('name', $name)
                        ->getQuery()
                            ->getResult();
    }

    /**
     * @param Settings $setting
     */
    public function save(Settings $setting)
    {
        $this->_em->persist($setting);
        $this->_em->flush();
    }
}

Fix query of group for PostgreSQL
Fix query of group for PostgreSQL
