Skip to content

Tag: symfony

a PHPpunit test fail randomly

I have a Quiz class. This class load 10 questions from a database depending on the level and the type of the quiz Object: level 0 load the ten first, level 1 load the next ten and so on. So in my test i create in a test database 30 questions. Then i create quiz object with different level and

symfony entities many to many, i add new fields

I try this code: Symfony: ManyToMany table extra columns This new field is because the user have a diferent role for diferent events. In the fist time i can add add the new fields on table user.evento, but now i cant. And i dont find the problem. I get this fail: An exception occurred while executing ‘I…

API Plateform custom get operation

I am trying to build an ecommerce site using API plateform. Since I am using JWT authentication with LexikJWTAuthenticationBundle I am having a hard time to get the user with the token. I would like to access the cart of the user. I managed to add to the cart through a custom post operation. I am trying to us…