Questions tagged as 'symfony2'

1
answer

How can I connect a view and a controller [closed]

Context I'm learning symfony2 ?     
asked by 15.03.2016 / 09:29
1
answer

GetEntityManager in Symfony 3.0.6

Since version 3.0.6 they have permanently deleted (removed) the getEntityManager () method and it is now getManager (). If you are using version 3.0.0 you will not have problems, but with version 3.0.6 or higher Symfony realizes that when we...
asked by 13.01.2017 / 14:21
1
answer

Problem with array and Twig symfony 2

I have a problem between the controller of an application and a template twig, what I do is to convert a field from one row of the database to UTF8 , and then send an array to the view and that field I get well formatted. Driver and twig code...
asked by 24.09.2016 / 22:45
1
answer

Error creating a combobox powered from Symfony doctrine

Now create the combobox, it is displayed correctly and it contains the correct value, but at the time of saving, it is entered in 0 in the database. My code is as follows ->add('idBpCustomer', 'entity', array( 'class' => 'chriscrudBun...
asked by 18.03.2017 / 23:15
1
answer

symfony validate gpx file (variant xml)

I'm trying to filter the upload of a file through the form. The type of file I work with is .gpx (gps positions). Internally it is an xml file, but its mimetype is application / gpx + xml. I have put the following in the validation.yml file a...
asked by 22.03.2017 / 11:13
1
answer

Declare the same service in several bundles

Good morning everyone. I am developing an application using Symfony 2.8 exactly and I have a question about how to organize the declarations of my entity normalization services. I do it in this way to be able to parse JSON in a comfortable and c...
asked by 24.11.2016 / 09:25
2
answers

How to make a UNION query in SYMFONY

How could I do the following query in Symfony SELECT * FROM (( SELECT SUM(o0_.qty) AS sclr_0, o0_.price AS price_1, i1_.numero AS numero_2, i1_.nombre AS nombre_3, i1_.um AS um_4, i1_.id AS id_5 FROM ofer_producto o0_ INNER JOIN inv_producto i...
asked by 26.10.2016 / 18:11
1
answer

Save as copy in Symfony

I'm trying to create a form that has two buttons, save as a copy and save and overwrite. My affected entities in the form are: Checklist-> ChecklistGroup-> ChecklistGroupTask-> ChecklistGroupTaskCorrective Until now I have been able to con...
asked by 30.06.2016 / 09:52
2
answers

AJAX response problem with Symfony2 (PHP)

I have a problem with the code: $cadenaScroll_respuesta.="<li> <div id='usuario-respond'><div id='imagen-usuario-respond' ><ul> <li id='nombreUsuario'> <b>".$respuesta->getUsuario()." </b></li>...
asked by 23.05.2016 / 20:48
0
answers

Transform the precision circle of google maps to coordinates

I work in an application that uses the Geolocation API of Google Maps to obtain the location of devices. In the application you can create a geo fence so that it will notify you if the device has left its assigned area. The problem is that curre...
asked by 20.11.2018 / 15:06