src/PHPDish/Bundle/ForumBundle/Form/DataTransformer/StringToThreadsTransformer.php
public function transform($value)
    {
        if (null === $value) {
            return '';
        }
        $threadNames = [];
        foreach ($value as $thread) {
            if (!$thread instanceof ThreadInterface) {
                throw new UnexpectedTypeException($thread, ThreadInterface::class);
            }
            $threadNames[] = $thread->getName();
        }
        return implode(',', $threadNames);
    }
public function transform($value)
    {
        if (null === $value) {
            return '';
        }
        $threadNames = [];
        foreach ($value as $thread) {
            if (!$thread instanceof ThreadInterface) {
                throw new UnexpectedTypeException($thread, ThreadInterface::class);
            }
            $threadNames[] = $thread->getName();
        }
        return implode(',', $threadNames);
    }
{@inheritdoc}