API Platform avec une relation ManyToOne

Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\KernelEvents; use ApiPlatform\Core\EventListener\EventPriorities; use App\Entity\Client; use App\Entity\Entreprise; use Symfony\Component\HttpKernel\Event\ViewEvent; use Symfony

4
[SILEX] Comment mettre le site en production

Symfony\Component\HttpFoundation\Request), 500) #5 /var/www/html/roadsofearth/vendor/silex/silex/src/Silex/ExceptionListenerWrapper.php(53): call_user_func(Object(Closure), Object(Doctrine\DBAL\Exception\ConnectionException), Object(Symfony\Component\HttpFoundation\Reque in /var/www/html/roadsofearth/vendor/twig/twig/lib/Twig/Loader/Chain.php on line 129 ``` J'ai essayé

3
Migration impossible

symfony et je voudrais créer mes entités et les migrer dans la base de données, mais cela ne fonctionne pas. Je viens de créer une application symfony très simple pour

2
Security : authentification impossible

Symfony\Component\Routing\Annotation\Route; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; class SecurityController extends AbstractController { /** * @Route("/login", name="login") */ public function login(AuthenticationUtils

1
API Platform - DataPersister - Impossible de créer un nouveau User

Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Serializer\Annotation\Groups; use Symfony\Component\Serializer\Annotation\SerializedName; /** * @ApiResource( * collectionOperations={ * "get", * "post"={ * "security"="is_granted('ROLE_ADMIN')" * }, * }, * itemOperations={ * "get", * "put"={"security

0
Affichage image dans Carousel

Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use Doctrine\Common\Persistence\ObjectManager; use Symfony\Component\Routing\Annotation\Route; use Twig\Environment; class

0
Did you forget a "use" statement for another namespace?

Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; class MiseAJourCSVController extends AbstractController { ``` Chemin du fichier "vendor\sunra\php-simple-html-dom-parser

1
Impossible d'installer les annotations

Symfony et j'ai un petit problème. Avec le code suivant : ```

2
problème de form

must be an instance of Yoda\MessageBundle\Entity\Message, string given, called in C:\xampp\htdocs\symfony_projet2\vendor\symfony\symfony\src\Symfony\Component\PropertyAccess\PropertyAccessor.php on line 556 and defined

1
Validation avec UniqueEntity Constraint

Symfony\Component\Validator\Constraints as Assert; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * @ORM\Entity(repositoryClass=UserRepository

3