Questions tagged as 'doctrine'

1
answer

Do not believe me Symfony database Many to many

I have two classes, the User class and the Functionality class, that relate to manytomany in symfony but when I run doctrine: schema: update --force does not generate the data base of the relationship here my code User Entity: namespace S...
asked by 21.06.2017 / 20:07
1
answer

Show specific values in a symfony form?

I am creating a form in Symfony in which you must choose a category and a subcategory that depends on the main category (for example, if you select Music the subcategories are pop, rock, etc ... and if it is Shows you should be childish, adults,...
asked by 29.11.2016 / 18:55
1
answer

Get a value from a multidimensional object PHP Symfony Doctrine

Hi, I'm a beginner and I want to get the value found in the following object specifically in: [id:AppBundle\Entity\BlogPost:private] => 1 and store it in a variable. The first part is the result of print_r and the second part...
asked by 17.11.2016 / 17:21
0
answers

Doctrine list indexes associated with entities

Is there a way to obtain the list of indices by command line, the list of indices associated with the relationships between doctrine tables? I have a hexadesimal index that I can not find, if I use the Oracle database it does not appear among th...
asked by 20.12.2018 / 14:11
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
0
answers

How can I improve the performance of a large data import in symfony?

You will see now I have to make a series of imports of csv files based on data, and I do it through doctrine in symfony 3. I'm talking about a csv of about 100,000 records, the case is that from that CSV I draw a series of fields for two enti...
asked by 16.10.2018 / 15:23
0
answers

Parameterize different connections to Mongodb from sonataadmin in Symfony4

I require that in each option of the menu of sonataadmin be able to define the connection to use "because I am using several databases", and tried to configure it from the services file or in the class of the CRUD, but not found How to do it, ca...
asked by 28.09.2018 / 01:07
1
answer

How to use doctrine in a self-service defined in symfony

I am developing a web system using the concept of symfony services 3.4 Said service makes queries with dql de doctrine, these work correctly if the use of another controller. However, when I want to use them in the defined service, I get the...
asked by 23.09.2018 / 01:58
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
1
answer

QueryBuilder generates Error: Expected Literal, got 'SELECT'

How are you? I am developing a program with symfony 3.4, xampp and mariadb 10. I must make a query with a nested subquery: I must go through an APPLICATION table looking for if there is not a certain PERSON that I am looking for with your ID...
asked by 26.05.2018 / 00:02