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

Symfony3.2 to symfony4 security.encoder_factory deprecated error

I updated my website from Symfony 3.2 to Symfony 4, by creating a new symfony4 skeleton and moved the source code from symfony3.2 to symfony4. I had been made the changes as mentioned in Upgrading Symfony4.Also I installed all the required…
A.JRJ
  • 331
  • 1
  • 5
  • 16
0
votes
0 answers

Symfony - Personnal Recursive function where required = true return false

I came here to relate a problem, i do a recursive function to generate some option for a product. The problem is when i set required to true, it's already false. I tryed to force it at true but anyway, required = false. public function…
Lunix
  • 29
  • 1
  • 8
0
votes
1 answer

Rendering single data from an array

{{dump(states)}} this returns FormView {#5921 ▼ +vars: array:33 [▼ "value" => [] "attr" => [] "form" => FormView {#5921} "id" => "States" "name" => "States" "full_name" => "States" "disabled" => false "compound" =>…
A.JRJ
  • 331
  • 1
  • 5
  • 16
0
votes
1 answer

How to disable required field in symfony form?

I have an address form type that required zipcode. here's the codes class AddressType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('poBox',…
user3818576
  • 2,979
  • 8
  • 37
  • 62
0
votes
1 answer

Providing readonly value in twig file returns null in symfony3.2

In my application form updation twig is as follows:
{{form_label(formUser.name)}} :
A.JRJ
  • 331
  • 1
  • 5
  • 16
0
votes
0 answers

Doctrine One-To-One, Self-referencing not working

I am working on a legacy application and I now need to change an existing table (called categories) so that it has a parent_id field which is a foreign key to the primary key of it’s own table (the categories table) The issue I am having is that I…
AntonioCS
  • 8,335
  • 18
  • 63
  • 92
0
votes
2 answers

Doctrine Entity Manager gets Read Only error from database

public function save($itemId, $invoiceName) { $query = " INSERT INTO invoice (item_id, invoice_name) VALUES (" . $itemId . ",'" . $invoiceName . ") "; $connection = $this->entityManager->getConnection('master'); …
Ydrus
  • 11
  • 6
0
votes
2 answers

Symfony3 : "Attempted to load class "ZipArchive" from the global namespace. Did you forget a "use" statement for "PHPExcel_Shared_ZipArchive"?"

I'm using symfony3 and trying to install/use TwigExcelBundle on my ubuntu16 server for an excel exporting purpose. I can install it by when I try to use I get the following error : "Attempted to load class "ZipArchive" from the global namespace.…
Lacky Raz
  • 1
  • 1
  • 1
0
votes
1 answer

Symfony 3.2 forms: IDs and entity values are mixed up after handle request

This is an excerpt from my POST data: ... lead[contacts][6][firstName]: test lead[contacts][6][id]: 543961 lead[contacts][6][lastName]: test ... lead[contacts][7][firstName]: John lead[contacts][7][id]: 296310 lead[contacts][7][lastName]:…
fishbone
  • 3,140
  • 2
  • 37
  • 50
0
votes
1 answer

Symfony 3.2 Form Field - Disabling the ID

Is it possible to render an input field without id? I would like to disable it in the twig file. I want that because I have a error "non-unique id" in the chrome console. I have conducted research using the Symfony's documentation and I have found…
juanma_
  • 11
  • 5
0
votes
2 answers

Symfony 3 : how to reordering an array collection with route action?

I have a Product Entity. Each product can have 0 or N pictures. I have a ProductPhoto Entity which has a order property (0 = first). On a page, I list all the pictures of my current product. I would like to manage pictures order with 2 up/down…
Eve
  • 776
  • 2
  • 11
  • 32
0
votes
2 answers

Persisting Collection of Forms in a ManyToOne/OneToMany association

I have read and re-read everywhere I could, and I am unable to find the proper answer to my problem. Here is the problem. I have 2 entities. Equipment, EquipmentPart respectively. Equipment: /** * @ORM\OneToMany( * …
0
votes
1 answer

Doctrine findBy boolean field returns no results

Recently, a piece of code stopped working. I haven't made any changes to it so I don't know why. Here's the code: $invites = $this->vault_em->getRepository('AppBundle:Invite\LocalInvite')->findBy([ 'active' => true, ]); Now, it's returning an…
amacrobert
  • 2,707
  • 2
  • 28
  • 37
0
votes
1 answer

Symfony 3.2 Form events : Can't retrieve data

I didn't find any subject related to my question and my case is very particular that's why i am calling for help. I have 4 involved entities : PurchaseOrder, SapPO, project and Product. As shown below there is a one to many association between…
0
votes
0 answers

Symfony doctrine: ManyToOne heritage doesn't work

I am new to Symfony. I'm working on an application where I need a cascading heritage in Doctrine, but heritage doen't appear to work : I have a mother class, "Content" : /** * Content * * @ORM\MappedSuperclass */ class Content { /** *…
pushin
  • 1
  • 1