public function getAllPreferences()
{
if ($this->preferences) {
return $this->preferences;
}
return $this->preferences = $this->em->createQueryBuilder('p')->select('p.value', 'p.option')->from('Newscoop\\NewscoopBundle\\Entity\\SystemPreferences', 'p')->getQuery()->getArrayResult();
}