skip to Main Content

Phpmyadmin – Can't install Sylius starter project

I'd like to create a Sylius project but I can't install the initial project following the instructions in the documentation. the command compose compose create-project sylius/sylius-standard MyFirstShop works but when I create .env.local which contains : DATABASE_URL=mysql://root@localhost/my_project?serverVersion=8 then I run…

VIEW QUESTION

Php – Symfony Doctrine have two property for the same column in database

Here's a sample entity use ApiPlatformMetadataApiResource; use DoctrineORMMapping as ORM; use SymfonyComponentSerializerAnnotationGroups; #[ORMTable(name: 'user')] #[ApiResource( operations: [new GetCollection()], normalizationContext: [ 'groups' => [ 'user:id', 'user:score', 'user:user_score', ], ] )] class User { #[ORMId] #[ORMGeneratedValue] #[ORMColumn(name: 'ID_USER', type: 'integer')] #[Groups(groups: ['user:id'])]…

VIEW QUESTION

PHPUnit doctrine mock issue

ideally for my project I need to store time only in the database (doctrine type="time_immutable"). However it causes issues with phpunit and I cant find any working solution. When I try to mock time only got this error: PDOException: SQLSTATE[22007]:…

VIEW QUESTION
Back To Top
Search