Questions tagged as 'doctrine-2'

1
answer

Generate entity using a particular connection

Consider the following configuration file: config.yml doctrine: dbal: default_connection: slqX45 connections: slqX44: driver: pdo_mysql host: "%database_host%"...
asked by 04.07.2016 / 14:24
1
answer

Doctrine2 + Symfony2: Bringing more than one entity in queryBuilder

Hello. I have the following question. I'm doing a select in several different tables, I want to bring some of them. But all the way I try, or it only returns the main or an error. Can you help me? $em = $this->getDoctrine()->ge...
asked by 26.10.2015 / 19:18
1
answer

Records being inserted into two tables between Entities with (doctrine - Foreign Key)

I have two tables, one States and another Customers . When inserting the records in the two tables, an error is occurring, instead of inserting the state reference in the foreign key of the Clients table, you are inserting the new status re...
asked by 27.08.2015 / 18:56
1
answer

Insert multiple objects with Doctrine Dbal

I'm using silex in conjunction with doctrine dbal 2.5. How do I insert multiple objects into the database with Doctrine dbal? Reading the documentation I did not find anything that would allow this, is there any way to do this?     
asked by 23.07.2015 / 20:54
1
answer

Error configuring Doctrine + Zend

Hello, I'm trying to configure Doctrine ORM to work with the Zend Framework, and when I give the 'bin / doctrine-module' command the following error appears: PHP Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\Run...
asked by 04.04.2015 / 22:56
1
answer

Registering in ManyToOne with Doctrine

Oops, everyone, Personnel I have entities created a call of Products and another call of Categories they are related in type ManyToOne with Doctrine. In case it would be several products for a category. I already have registered several categori...
asked by 26.01.2015 / 13:58
3
answers

How to capture the result of a doctrine2 execution?

I am implementing doctrine in a project, however I have a question about inserting, updating and removing data. When I execute the following command for example: $companyName = $entityManager->getRepository("Admin\Module\Configuration\Entit...
asked by 16.12.2014 / 12:51
1
answer

Doctrine Date Format

I would like to format a date with Doctrine, I often save a date as datetime in the database however I want to perform a grouped search per day without considering minutes and seconds. Does anyone know a cool way to do this?     
asked by 19.08.2014 / 19:10
1
answer

DQL Doctrine with WHERE does not work

Good afternoon! I'm trying to perform a query on a user table that has FK from 4 other tables, but I guess that's not the case, and I make 2 filters in WHERE, for example WHERE login = 'string' AND id <> numero; . But it does not...
asked by 24.07.2014 / 21:54
1
answer

Filter tables to be mapped by Doctrine from the EntityManager (without command line)

I'm developing a feature in my application that automatically map and generate entities. The problem is that the user can select the tables that he wants to map, so I must insert a filter with the name of the tables to be converted. To do thi...
asked by 17.07.2014 / 13:46