Questions tagged as 'symfony2'

1
answer

How to have a custom repository not associated with an entity in Symfony

I have a file DefaultRepository to place all the general queries there. Would it be possible to have a custom repository not associated with an entity in Symfony ? I would like to put in it all the queries that do not fit well in...
asked by 07.11.2018 / 17:26
0
answers

How can I perform the following MySQL query in Doctrine?

I need to make the following query using Symfony 2.1 and Doctrine, but I have no idea how I can make it work, I would appreciate it if you can help me with this problem. SELECT * FROM ( SELECT factura.id AS factura,...
asked by 30.10.2018 / 22:06
1
answer

Upload multiple symfony images 3

I have a problem: I have an entity Property and between its fields one called fotoUbicacion.La question is the following, I need that field to store the amount of images that the user uploads in the form. In the documentation of symfony 3.4 ( li...
asked by 26.09.2018 / 00:11
0
answers

sha256 hash with NodeJs and Symfony2.8

I'm trying to migrate my backend from Symfony 2.8 to NodeJs(ExpressJs) and right now I'm trying to use the same login and for that I need to compare the password encriptadas . To get the password (encrypted) and be able...
asked by 11.08.2018 / 15:18
0
answers

Asset () on a controller in Symfony2.3

To an image in the "src" I have to put a varibale path, when I do that in the twig, the resulting url is invalid, which leads me to use asset () to be correct, but it does not work because says that variable with the path does not exist. What...
asked by 01.08.2018 / 17:14
0
answers

Can you create a services.yml for each class?

I have a question with Symfony 2.7 ak try to modulate my services. I edit the app / config / config.yml file to import the services of my Bundle imports: - { resource: '@AppBundle/Resources/config/services.yml' I have a service on...
asked by 16.07.2018 / 14:00
1
answer

How to perform this query in dql or querybuilder

How to perform this query on dql or querybuilder ? select m.id, m.nombre, c.id, c.nombre from miembro as m inner join ( select cmi.id_cargo, cmi.id_miembro, cmi.id from cargo__miembro as cmi inner join ( select muc.id as idmiembro,...
asked by 26.06.2018 / 18:50
0
answers

Unable to modify the classes.php file in the symfony cache

Hello, please, I need your help: I have installed IIS and PHP 5.4 and I have a system developed in symfony2, the iis and php work well and I even have the pdo_sqlsrv enabled for connection between php and sql server 2014 everything seems to w...
asked by 15.06.2018 / 21:03
1
answer

How to show the age of a person in Symfony with twig

I have this PHP code that works but I would like to be able to use the same but within twig in symfony. <?php $cumpleanos = new DateTime("1982-06-03"); $hoy = new DateTime(); $annos = $hoy->diff($cumpleanos); echo $annos-...
asked by 31.05.2018 / 01:07
0
answers

Highcharts in Symfony 2.8

I have been trying for some time to use this Highcharts library in a personal project that I am developing in Symfony 2.8 . I have searched the bibliography and when trying to follow the steps for the installation of the OBHighchartsBundle bu...
asked by 23.05.2018 / 21:59