Questions tagged as 'doctrine-2'

2
answers

Doctrine: ManyToMany Relationship with Extra Fields

I have a many-to-many relationship between two tables: Products and Orders. Doctrine then generates a third table. Until then calm down. But I wanted to generate in this third table more fields (qtde and unit value at the time of purchase)...
asked by 26.05.2017 / 15:34
1
answer

I can not persist the data in the Bank

I think I'm doing something wrong in this class because it's the only one on my system that is not persisting in the database. What am I forgetting to make it work? The incluir() method? If I run a var_dump($log) , before calling...
asked by 03.02.2015 / 22:08
1
answer

How to avoid duplication of content in a table without a primary key?

In a virtual store panel that I am building the products have relationships by color and size, where each product color has a size. This is a part of my database for a better understanding of the problem: link When the user wants to associate...
asked by 20.05.2015 / 16:44
1
answer

What is the overhead of using Doctrine?

A few days ago I've been arguing with some co-workers about performance and high availability. In the middle of the discussion one of the points raised was that when reaching a certain number of requests, Doctrine ORM becomes a bottleneck i...
asked by 15.02.2017 / 18:03
1
answer

Doctrine ORM returning array [0] in find

I have a question .. I implemented Doctrine with Silex, I created the entity, the repository and the service, but at the time I do a search with findByEmail () for example, to display the result I have to use $ result [0] -> getNome () . Would t...
asked by 16.01.2017 / 22:25
0
answers

CodeIgniter 2.2 and Doctrine 2

I have installed CI2, Doctrine 2 and HMVC. I followed the steps in this site . by removing Smarty that I did not find necessary. My folders are organized as follows: ->application ->cache ->doctrine ->generated_ent...
asked by 22.05.2015 / 16:29
1
answer

Doctrine 2 - Entities in more than one directory

Good morning, I'm starting in Doctrine 2.4 and I'm developing a system where I separate core files from application files, as follows: /root |-- /src |-- /App |-- /Model |-- **(Entidades da Aplicaç...
asked by 03.06.2014 / 13:45
1
answer

How to return a collection of data using Doctrine ResultSetMapping?

I have the following script that is functional: SELECT r.coluna_1 as Coluna_1, e.coluna_1 as Coluna_2, FROM produto r INNER JOIN empresa e ON r.id_empresa = e.id_empresa WHERE r.id_tipo = 'N' AND r.data_devolucao <= :dataDevolu...
asked by 12.09.2018 / 18:53
1
answer

Doctrine 2 INNER JOIN with Subquery

I'm migrating my queries to doctrine using QueryBuilder . And I have a inner join query with a subquery , I'd like to know how to do this using doctrine . SELECT p.* FROM produtos p INNER JOIN (...
asked by 10.11.2016 / 20:33
2
answers

How to check if the date within the DateTime is invalid?

Working in an application with PHP 5.5 + Symfony 2 + Doctrine. In one of the tables in this application there is a updated_at field that is initially NULL . However, when I give getUpdatedAt() to this entity, I get an obje...
asked by 02.02.2015 / 17:49