Category : class

I’m encountering a strange problem when calling create form method in symfony 5.1. The code failing : namespace AppController; use AppEntityDocumentsventehabitation; use AppFormDocumentsventehabitationType; use AppEntityUserDocuments; use AppEntityDocumentscontratdetravail; use AppFormDocumentscontratdetravailType; public function fillDocument(DocumentsRepository $docRepo, Request $request, int $id) { $currentDoc = $docRepo->findBy(["id" => $id]); $name = $currentDoc[0]->getDocModelName(); $docEntity= str_replace("_", "", $name); $formEntity = $docEntity."Type::class"; $docEntity = ..

Read more

What I want: I try to deserialize the response from consuming an API Call in PHP. For my endpoints I like to have a Model, that way the Serializer can do it’s magic. The response: { "count": 123, "next": "string", "previous": "string", "limit": 123, "offset": 123, "results": [ {…}, {…} ] } Now, every response ..

Read more

I made a composer update and since then I get an error message: Class “OneupUploaderBundleUploaderNamingUniqidNamer” not found while loading “AppControllermyAppOriginalNameNamer”. And I just cannot figure out to fix it. I made again composer install, and also composer dumpautoload but nothing helps Everything was fine until I made composer update.. Source: Symfony..

Read more