Most voted "doctrine-2" questions
Doctrine 2 is an Object-Relational Mapping Framework (or ORM) for PHP (5.3.2+). While Doctrine 1.2 uses the Active Record standard Doctrine 2 uses the Data Mapper standard. The Doctrine Project is a collection of open source libraries and tools to handle database abstraction and mapping of relational objects written in PHP.
Learn more…60 questions
Sort by count of
-
0
votes1
answer153
viewsDoctrine2 + Symfony2: How to bring more than one entity into queryBuilder
Hello. I have the following doubt. I’m doing a select on several different tables, I want to bring some of them. But any way I try, it either returns only the main or a mistake. Can you help me? $em…
-
0
votes0
answers30
viewsSymfony2 - Problems with Doctrine2 Preupdate
My entity Budget has some methods that are executed in PrePersist and PreUpdate. It’s them: /** * @return \DateTime */ public function generateNextPaymentDate() { if ($this->getStartsAt() !==…
-
0
votes0
answers109
viewsDoctrine2 + pdo_sqlsrv createQueryBuilder Order By with varchar field does not work
I’m creating a method that takes values for createQueryBuilder() from parameters. I tested in my local database with pdo_mysql driver and it worked perfectly, sorting both by a field of type int…
-
0
votes1
answer90
viewsCreate query with date range in Doctrine 2.0
I’m trying to get the records that are processed No (Datetime) less than 2 days from the current date. I am starting from the following reasoning. public function…
-
0
votes1
answer66
viewsUse two fields in a Manytoone relation
There is the following relationship between two entities: class Clients { //... /** * Dealership id * * @ManyToOne(targetEntity="Dealerships", inversedBy="clients", fetch="EXTRA_LAZY") *…
-
0
votes1
answer37
viewsGenerate entity using a given connection
Consider the following configuration file: config.yml doctrine: dbal: default_connection: slqX45 connections: slqX44: driver: pdo_mysql host: "%database_host%" port: "%database_port%" dbname:…
-
0
votes0
answers286
viewsAllowed memory size of 33554432 bytes exhausted
I have a little problem when I try to run my application, because then I have an application made with Doctrine + php and from time to time began to give that error follows: PHP Fatal error: Allowed…
-
0
votes1
answer60
viewsDoesn’t Doctrine ORM 2 have support for working with VIEWS?
I created a View in the database and now I need to use it in the system, but I can not use it, because the Doctrine à recognizes as a table, the following error appears: Type:…
-
0
votes1
answer37
viewsSeeking null value with get in the Doctrine Entity
Opa all right? I have a problem with values NULL with Doctrine. What happens: I have some fields in a database table where I keep some values for future validations, these fields are nullable =…
-
0
votes1
answer35
viewsEmpty json_array attribute when persisting in BD
Boas Galeri. I have a curious problem using Doctrinefixturesbundle. I have a class Application of the kind Entity Class that maps to the table system. In this class there is an attribute called…