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
1
vote
1 answer

Symfony 3 and Doctrine relationship

I am having two entities A and B. Let's say entity A has a primary key 'foo' and the entity B has a variable named 'bar'. I am trying to establish the "Many to one" association between these two. And when i run "update schema" command on my…
1
vote
0 answers

Persistence with embedded form

I have 2 entities Enchere and Produit with 2 respective Form. In my Enchere's Form, there's : public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('idProduit', ProduitType::class); //Produit's Form } idProduit…
0xPunt
  • 313
  • 1
  • 4
  • 21
1
vote
1 answer

Access cache items created outside Symfony makes them work sometimes only, why?

I am integrating a legacy Zend Framework 1 (ZF1) application and a Symfony 3.2.6 (SF) application. In a nutshell how it works is: The session management, the login page (unique entrypoint) and a lot of stuff are managed by the ZF1 application and…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
0
votes
0 answers

mongoimport error inserting documents: unknown operator: $id

I need to fix an old system that has an API built in Symfony and has packages mananged with composer. Basically it has an export routine and an import routine that was working and doesn't work anymore. The components of the system that could be…
0
votes
0 answers

How to output binary string(or base64) as a file in controller?

I get pdf documents from some server api in base64 encoded format and have to send that file to browser as downlodable file. I worked with BinaryFileResponse but it requires file path and I don't want to write files on the disk even for a…
0
votes
1 answer

Conditionally enable form type in Symfony 2/3

I have 2 form type that display 2 selects $builder ->add('control1', EntityType::class, [ 'label' => 'Country', 'class' => Country::class, ]) ->add('control2', EntityType::class, [ …
user3174311
  • 1,714
  • 5
  • 28
  • 66
0
votes
2 answers

Symfony page not found (Symfony 3)

I am new in Symfony and i am working on existing project. I have created crud with doctrine:generate:crud, but application returns me 404 page not found. I was debugging it with debug:router and router:match and everything was okay. Here is my…
kuznecov
  • 25
  • 3
0
votes
1 answer

How to convert string from input type="datetime-local" to datetime in symfony without FormBundle?

I have date with time string: array(2) { ["available_from"]=> string(16) "2020-07-30T12:26" ["available_to"]=> string(16) "2020-07-30T23:32" } Input:
azez09
  • 1
  • 1
  • 4
0
votes
0 answers

How is it possible for the repository parameter to be null?

I'm trying to enhance an old project built with symfony 3.2 but i'm facing a weird issue. I'm just trying to get some data in my controller to send it to the view. But, for some reason i can't reach the repository function i made from my…
0
votes
0 answers

Symfony 3.2 CollectionType

Here's my problem. In my project, I have a one-to-many relationship between class FactureAchat and LigneFactureAchat, when I add a Facture the products are added in the Table ligne_facture_achat without having adding the foreign key of my Facture…
0
votes
1 answer

Class "Symfony\Bundle\FrameworkBundle\Controller\Controller" not found while loading "App\Controller\StudentController"

Hi I'm fresher for symfony . when i execute the below code it will show error.i installed all the assets of symfony.help me to clear this..!
0
votes
2 answers

Symfony 3.2 Form best way to add a filter on textfield to remove unwanted Characters

I am using Symfony 3.2. I have a text field on a Symfony form. I would like to apply a "sanitize" function on form submission. What is the best way to do this? Here is a snippet of the form. The filed in question is "comment". I would like to remove…
user3106759
  • 438
  • 3
  • 15
0
votes
0 answers

Display multiple chart in the same page

I'im using symfony 3.2 and ObHighchartsBundle , I'd like to know how to display many charts in the same page. Right now I'm able to display only one chart called "statMontant". I'd like to display the second chart inside the div with id…
0
votes
0 answers

Symfony website got broken once pushed in production

I'm developing a website using Symfony 3.2, and it worked perfectly well on my machine. It also worked perfectly well when I pushed it on our pre-production server. But then when I pushed it on our production server, it got broken. The first…
ntyss
  • 91
  • 3
  • 10
0
votes
2 answers

Can't add a field to a model in Symfony, bin/console crashes

I'm working with Sylius framework. I'm following the guide to customize models. I am trying to add a field notice to a model Taxon which is already overridden in my project. For that, I added the field description to Taxon.orm.yml of the…
gvlasov
  • 18,638
  • 21
  • 74
  • 110