Questions tagged as 'symfony3'

1
answer

Nusoap and symfony3

Problem to connect with web service. My code is as follows: $client = new \nusoap_client('clientesoap', true); $param= array('parametro1'=> value1, 'parámetro2'=>'value2'); $result = $client->call('metodo', array('parameters' => $p...
asked by 18.05.2017 / 12:15
1
answer

Dump MySQL From Client to Server in PHP / Symfony

I have this code with which I create backups of my database $dbname = $this->getParameter('database_name'); $host = $this->getParameter("database_host"); $user = $this->getParameter("database_user"); $pass = $this->...
asked by 31.07.2017 / 19:05
2
answers

Problem in Symfony 3 with ManyToMany Bidirectional relationship

I'm using Symfony 3 with Doctrine. In my application I have 2 entities: User and Role, and I need to make a bidirectional relationship between both entities from many to many that allows me to relate roles with users both from the User form and...
asked by 09.06.2017 / 17:36
1
answer

Relate twig template with php controller in symfony

I have a method in the controller used to change data in a table. public function bajaServicioAction($idservicio, $idcliente) { codigo para hacer el cambio en la base de datos } On the other hand I have a template ficha.html.twig...
asked by 12.03.2018 / 17:59
1
answer

Configure .htacces to access a file?

I have a symfony project in my root directory, and I have the following lines in my .htaccess <IfModule mod_rewrite.c> RewriteCond %{HTTP_HOST} ^mipagina.mx$ [OR] RewriteCond %{HTTP_HOST} ^www.mipagina.mx$ RewriteRule ^(.*)$...
asked by 26.02.2018 / 19:27
1
answer

Symfony 3 ClassNotFoundException when creating Bundle

So far I had used Symfony 2 and I just moved to version 3. The installation is correct and I can run the emulator and see the welcome screen. The problem is when creating a Bundle. I create the bundle as always, with console and following the in...
asked by 10.07.2017 / 01:04
0
answers

put into production symfony mercadopago

Problem when integrating the Mercadopago payment platform with the symfony SDK. In TEST Mode it works perfectly with the credentials of TEST but in production I can not get the error and solve it. How can I get the specific error that the API re...
asked by 15.03.2018 / 23:28
1
answer

Problem with the decimal data type in Doctrine2 and Symfony3

I have an entity that has three fields of decimal type /** * @var decimal * * @ORM\Column(name="cantidad", type="decimal", precision = 3, scale=2) */ private $cantidad; /** * @var decimal * * @ORM\C...
asked by 20.07.2017 / 15:57
2
answers

as I define field timestamp symfony 3 and easyadminbundle

How can I make an entity store a createdAt and updatedAt field with doctrine2 mapped by annotation? ... My entity is User. I'm using easyadminbundle to manage the backend.     
asked by 12.06.2017 / 15:10
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