public function getTopicBy($string, $locale = null)
{
$topic = $this->getTopicRepository()->getTopicByIdOrName($string, $locale)->getOneOrNullResult();
if (!$topic) {
$topic = $this->getTopicByFullName($string);
if (!$topic) {
return;
}
}
return $topic;
}