skip to Main Content

Symfony SessionHandler Warning – PHP

when I try to run a especifical project on my computer, symfony show me this error: Warning: SessionHandler::read(): open(/opt/alt/php74/var/lib/php/sessionsess_rt7p5374uhjagiperqv83aej38, O_RDWR) failed: No such file or directory (2) I'm use symfony 5.4 and PHP 8

VIEW QUESTION

How to fix "Cannot autowire service: Argument references class but no such service exists" in Sylius? – PHP

In Sylius 1.11, after creating a new Campaign entity using the maker bundle, I get this error when trying to fetch a campaign using its repository: Cannot autowire service "AppRepositoryCampaignRepository": argument "$class" of method "DoctrineORMEntityRepository::__construct()" references class "DoctrineORMMappingClassMetadata" but no…

VIEW QUESTION

How to specify to Doctrine NOT to create an index – PHP

I have this simple entity for example: <?php namespace AppEntityCreator; use AppRepositoryCreatorActivityContactRepository; use DoctrineORMMapping as ORM; #[ORMEntity(repositoryClass: ActivityContactRepository::class)] #[ORMIndex(columns: ['contact_id'])] class ActivityContact { #[ORMId] #[ORMManyToOne(targetEntity: Activity::class, cascade: ['persist'])] private Activity $activity; #[ORMId] #[ORMColumn(name: 'contact_id', type: 'integer')] private int $contactId; public…

VIEW QUESTION
Back To Top
Search