public function getTopics($user, $locale = null)
{
$userId = is_int($user) ? $user : $user->getId();
$userTopics = $this->em->getRepository('Newscoop\\Entity\\UserTopic')->findByUser($userId, $locale);
$topics = array();
foreach ($userTopics as $userTopic) {
$topic = $userTopic->getTopic();
$topic->setTranslatableLocale($locale);
$topics[] = $topic;
}
return $topics;
}