public function __construct(EntityManager $entity_manager = null)
{
$this->entity_manager = $entity_manager;
$this->setNormaliser(function ($input) {
$pos = strrpos($input, '.');
if ($pos === false) {
return $input;
} else {
return substr($input, 0, $pos);
}
});
}