Questions tagged [symfony-3.2]

This is the Symfony 3.2.x specific tag. Use it in addition to the symfony3 tag if your question is specific to Symfony 3.2.x — not just 3.x.

Symfony is a PHP full-stack web framework developed and maintained by Sensio Labs.

Information

This tag is specific for the 3.2 version of Symfony. See the tag for general Symfony 3.x questions.

The 3.2.0 version was released on the 30th November 2016.

326 questions
2
votes
1 answer

File uploaded as blob

I'm having this api that's supposed to upload a file. The code was designed to look for the uploaded file where it should be, in $request->files but that variable is empty. Instead, I find the image in $content in it's character form(����). Is this…
Matt
  • 127
  • 12
2
votes
1 answer

Accessing to nested comments in a Symfony Blog

I'm working on a project which implements a public feed. I have a Comment entity which let's users to submit comments to each feed. However, I want users to be able to submit responses to the comments as well. For that purpose I have $response…
akyayik
  • 664
  • 1
  • 8
  • 25
2
votes
0 answers

How to get a secured ip with bazinga geocoder

I'm using the bazinga geocoder in a project on Symfony at work. We use several geolocation part on our application, so we cant use the local ip (127.0.0.1 or our docker IP). We need a fakeIp to work with those geolocation. Moreover we use a proxy in…
Alex.W
  • 41
  • 4
2
votes
0 answers

Symfony Upgrade from 3.2 to 3.3 : TraceableAdapter

I have upgraded Symfony from 3.2 to 3.3. I have readed this : https://github.com/symfony/symfony/blob/master/UPGRADE-3.3.md But now, I have this error : Type error: Argument 2 passed to AppBundle\EventListener\ForumListener::__construct() must be…
Gaylord.P
  • 1,539
  • 2
  • 24
  • 54
2
votes
2 answers

symfony - doctrine - Recover all the data of my bdd except a few

I need help for queryBuilder in doctrine. I search a queryBuilderMethod for, get all data except few. for example in sql with one table its something like this : "select * from table Where user != "a" && user != "b" && user != c [...]" i have 3…
2
votes
1 answer

Symfony3 login and register form in one template on FOSUserBundle

I need to put in the same page the login form and the registration form. I'm using Symfony 3.2 and FOS User Bundle. I found this: How to merge login and register form in one template on FOSUserBundle Which was my first approach, but there is a…
monstercode
  • 944
  • 6
  • 25
2
votes
1 answer

Video not working in Safari using HTML5, Symfony and Twig

EDIT: I can't display a video using twig, for example using, {{ asset('public/index/img/video.mp4') }}, however it works if I use a direct link, such as http://www.video.mp4 Any help on how to use twig to display the video as opposed to a link…
sergiers
  • 31
  • 6
2
votes
1 answer

Doctrine wants to create tables, which are already existing by schema update

I have executed bin/console d:s:u --force Then the schema was created successfully. However, if I execute this command again, Symfony wants to re-create the schema. How can this be? See full command line output: $ bin/console d:s:u --force Updating…
technergy
  • 259
  • 1
  • 12
2
votes
1 answer

Implementation for configureRoute() of AnnotationClassLoader

In my Symfony 3.2 app, I create a custom router that extends from Symfony\Bundle\FrameworkBundle\Routing\Router. As required, it implements a getRouteCollection() method: public function getRouteCollection() { $locator = new FileLocator(__DIR__…
paolo
  • 2,528
  • 3
  • 17
  • 25
2
votes
1 answer

Calling service from Symfony Command fails with "The container cannot be retrieved as the application instance is not yet set." error, why?

I have the following services definition at IntegrationBundle/Resources/config/services.yml: services: event.subscriber.params.extractor: class: IntegrationBundle\Middleware\EventSuscriberParamsExtractor main.api: class:…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
2
votes
1 answer

How can I pass an iteration specific variable to the Form Builder in the Form Collection in Symfony 3?

I have an evaluation that has different questions (items) and each item has a specific number of possible choices. I need to pass the number of choices and the labels of each question to build the form for each item (question). I can pass variables…
Vlad Dogarescu
  • 153
  • 1
  • 11
2
votes
0 answers

Symfony and ParamConverter : Get current User

With Symfony 3, I use ParamConverter and custom a method in my repository : " getPicture() ". /** * @Route("/picture/edit/{id}/{slug}", requirements={"id": "\d+"}, name="my_picture_edit") * @ParamConverter("picture", options={ * …
Gaylord.P
  • 1,539
  • 2
  • 24
  • 54
2
votes
0 answers

Symfony 3 How to Unit Test your Forms with VichUploaderBundle field

Someone did a unit form test with VichFileTypefield?. When i run my form type test, i get: Argument 1 passed to Vich\UploaderBundle\Form\Type\VichFileType::__construct() must implement interface Vich\UploaderBundle\Storage\StorageInterface that…
2
votes
2 answers

FOS/user-bundle ProxyManager\Configuration error

After installation of friendsofsymfony/user-bundle I getting this error FatalThrowableError in Configuration.php line 124: Type error: Return value of ProxyManager\Configuration::setGeneratorStrategy() must be an instance of ProxyManager\void, none…
user4242771
2
votes
1 answer

Symfony3 authorization doesn't work - always wrong credentials

I'm working on login form in Symfony3 but no matter what I did, I can't authorize user and it always says that credentials are incorrect. Some details. Database - user table - contains below list of columns: id, first_name, last_name, username,…
Czadus
  • 43
  • 3