Quantcast
Channel: PHP Website Development » DQL
Browsing all 6 articles
Browse latest View live

Doctrine 1.2 performance

How to speed up Doctrine in routine statements like getting collection or related data from object?What’s better if i want to get list with related tables data. Native sql in doctrine or using...

View Article


Doctrine 2 – Same Entity Multiple Join

I’m newbie in doctrine. I’ve got two tables messages and users. User entity have two joins, fromMessages and toMessages. Message entity have two joins, fromUser and toUser. My annotation is as...

View Article


Diff of two Doctrine_Collection instances

I have a collection of users who completed a certain test and a list of users who got an invite for that test. Now I’d like to fetch all the users who did not complete the test. I thought it’d be...

View Article

How to return object from a DQL query?

I have written a DQL query in Doctrine 2:$qb->select(‘r.position’) ->from(‘\Entities\Races’, ‘r’) ->where($qb->expr()->eq(‘r.entrantId’, ‘:entrant_id’)) ->setParameter(‘entrant_id’,...

View Article

How to return object from a DQL query?

I have written a DQL query in Doctrine 2:$qb->select(‘r.position’) ->from(‘\Entities\Races’, ‘r’) ->where($qb->expr()->eq(‘r.entrantId’, ‘:entrant_id’)) ->setParameter(‘entrant_id’,...

View Article


Image may be NSFW.
Clik here to view.

Doctrine 2 Self Join

I want to generate a complex self join Query throw DQL.here is a simple version of my table structure.CREATE TABLE `item_view` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_item` int(11) NOT NULL,...

View Article
Browsing all 6 articles
Browse latest View live