|
@@ -5,7 +5,6 @@ namespace App\Controller;
|
|
|
use App\Entity\Article;
|
|
|
use App\Form\ArticleType;
|
|
|
use App\Repository\ArticleRepository;
|
|
|
-use Doctrine\Common\Collections\Order;
|
|
|
use Doctrine\ORM\EntityManagerInterface;
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
use Symfony\Component\DependencyInjection\Attribute\Target;
|
|
@@ -36,6 +35,7 @@ final class ArticleController extends AbstractController
|
|
|
): Response
|
|
|
{
|
|
|
$article = new Article($this->getUser());
|
|
|
+ $article->setContent('');
|
|
|
$workflow->getMarking($article);
|
|
|
|
|
|
$transitions = $workflow->getEnabledTransitions($article);
|