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
0
votes
3 answers

Issues creating an associative array with another array in PHP

I'm trying to create an associative array in PHP using an Object. The Object is values from a database, called Category. It only has two values, an id and a name field. This is what I have: $category =…
Kaley36
  • 233
  • 9
  • 19
0
votes
1 answer

FOSUserBundle Registration Form is invalid but has no error using Symfony 3

I can't find out why the form are saying that it is not valid() but the are no errors on $form->getErrors(); UserRegistration /** * @ApiDoc( * description="Register User, NEEDS TO ADD MORE INFORMATION HERE", * statusCodes={ * 400…
almar.io
  • 21
  • 3
0
votes
1 answer

Issues with EasyAdmin and Symfony relations One-to-Many

everyone. I was having issues with Easy Admin and the one-to-many relationship handled by Symfony. The three entities that I currently have in place are User, Products, and Category. When I place the relationship on Product and Category, I get…
Kaley36
  • 233
  • 9
  • 19
0
votes
1 answer

Symfony 3 | JMSi18nRoutingBundle doesn't translate routes

Guys I was using BeSimplei18nRoutingBundle but using some JMS bundles too, so I wanted all to be JMS bundles and changed it to JMSi18nRoutingBundle. Now my locale based routing working perfectly, but I cannot translate them. Looked everywhere and…
Arda Oğul Üçpınar
  • 881
  • 1
  • 14
  • 38
0
votes
1 answer
0
votes
1 answer

How to enable a form for given period

I have to create a form that can be enabled and disabled by the admin, In my case the admin enable the form for two months per year(to be filled by users) a sort of survey. The admin provide start date and end date ,if the Current date is in the…
Julie
  • 563
  • 6
  • 10
  • 23
0
votes
1 answer

Symfony3 Serializer - How to separate values from dot strings and combine in one array column

I get data from http request in given form { "start_date": "2017-03-13", "end_date": "2017-03-19", "visitors_total": 2555, "views_total": 2553, "visitors_country.france": 100, "visitors_country.germany": 532, "visitors_country.poland":…
Shahid
  • 357
  • 5
  • 12
0
votes
1 answer

Symfony Dependency injection with services

Trying to create a service that logs information to a database. The service has to call the Doctrine\ORM\EntityManager in the constuctor, but I keep getting this error: Catchable Fatal Error: Argument 1 passed to…
Kaley36
  • 233
  • 9
  • 19
0
votes
1 answer

Why aren't my assets recognised by symfony?

php bin/console assets:install --env=prod --symlink --relative My bundle is not in the generated list. There are other bundles in there. The bundle is installed in vendors (from private vcs), registered in symfony, file…
jim smith
  • 2,394
  • 5
  • 29
  • 35
0
votes
1 answer

issue with relation entity

I read some documentations about ORM & Symfony but the English is not my mother language and maybe I miss something :) I will just make a join between reservation & spectacles I have this error : [Semantical Error] line 0, col 70 near 'r WHERE…
0
votes
2 answers

Handling Images saved to the database with Symfony

I'm having issues with a small and trivial application that I created to help me learn Symfony 3. The Application simple allows me to upload an image when I create a new blog post. I'm using the Symfony 3 documentation to learn about uploading…
Kaley36
  • 233
  • 9
  • 19
0
votes
1 answer

Empty Translations collections from custom model in index.html.twig sylius

I created a custom entity "Faq" with their routes . When I make a dump of "faqs" in my index.html.twig Faq#translations#collection is empty. I need a "question"and a "response" in the collection. In my database all fields are present in…
0
votes
0 answers

Symfony 3 - Form builder: Storing select field in database with doctrine

I'm new to Symfony and I would like your help in deciding the best way to design a form and store into database using Doctrine. Here is my task: I have a form created with the FormBuilder containing various types of input fields. I have created…
David Šili
  • 117
  • 2
  • 12
0
votes
1 answer

How to load translations from database after they are imported in LexikTranslationBundle?

I am using LexikTranslationBundle for translate contents in my project. I have been reading carefully the documentation for the bundle and I have setup my project as follow: # LexikTranslationBundle Configuration lexik_translation: …
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
0
votes
0 answers

Symfony 3 app works on local host but once deployed on the server, the main page works but other links are broken

Do I have to change something on the configuration server. the main page works on on /web or web/app.php but the other links dont work. it returns a 404 error. can someone please help.
Moses
  • 43
  • 1
  • 5