¡@

Home 

php Programming Glossary: dql

Complex WHERE clauses using the PHP Doctrine ORM

http://stackoverflow.com/questions/1049617/complex-where-clauses-using-the-php-doctrine-orm

to figure how to write the following WHERE clause using DQL Doctrine Query Language WHERE name 'ABC' AND category1 'X' OR.. UPDATE Ok it seems like you can't do complex queries using DQL so I've been trying to write the SQL manually and use the andWhere..

How to select randomly with doctrine

http://stackoverflow.com/questions/10762538/how-to-select-randomly-with-doctrine

its own drawbacks Add a custom numeric function see this DQL RAND function might be slow if you have lots of matching rows.. raw SQL query first to get some IDs randomly then use the DQL WHERE x.id IN to load the associated objects by passing the..

Cumulative DQL with Doctrine

http://stackoverflow.com/questions/1513384/cumulative-dql-with-doctrine

DQL with Doctrine Im having a hard time working out a proper DQL.. with Doctrine Im having a hard time working out a proper DQL to generate cumulative sum. I can do it in plain SQL but when.. sum. I can do it in plain SQL but when it comes to DQL i cant get hold of it. Here is how it looks in SQL SELECT s.name..

PHP ORMs: Doctrine vs. Propel

http://stackoverflow.com/questions/2062473/php-orms-doctrine-vs-propel

. Furthermore I better like the way you work with queries DQL instead of Criteria php Propel c new Criteria c add ExamplePeer..

Execute raw SQL using Doctrine 2

http://stackoverflow.com/questions/3325012/execute-raw-sql-using-doctrine-2

raw SQL using Doctrine 2 i know i can run DQL and all the fancy ORM features using Doctrine. but for development..

Doctine 2 Restricting Associations with DQL

http://stackoverflow.com/questions/8240335/doctine-2-restricting-associations-with-dql

2 Restricting Associations with DQL There seems to be an over sight in Doctrine 2.1 where it isn't..

Using REGEXP in Doctrine 2.x ORM

http://stackoverflow.com/questions/8810442/using-regexp-in-doctrine-2-x-orm

to proven wrong. I'd like to execute a query written in DQL that contains the REGEXP operation. For example select from.. stated it was untested . Any idea how to execute REGEXP in DQL w out writing straight SQL TIA. php orm doctrine doctrine2.. even if you can generate your query there is no way the DQL parser will understand it without doing something about it...

Zend Framework ORM(TDG) vs Doctrine [duplicate]

http://stackoverflow.com/questions/9061640/zend-framework-ormtdg-vs-doctrine

to relations and lazy fetching work with entities in your DQL e.g.'FROM Entity Donation d WHERE d.user user' and user is simple.. makes you easy to write custom TreeWalkers to maninpulate DQL and Query structure before converted to SQL which I use a lot..

Complex WHERE clauses using the PHP Doctrine ORM

http://stackoverflow.com/questions/1049617/complex-where-clauses-using-the-php-doctrine-orm

OR category3 IN subcategory_in_clause php mysql doctrine dql share improve this question From my experience each complex..

How to select randomly with doctrine

http://stackoverflow.com/questions/10762538/how-to-select-randomly-with-doctrine

Any idea how this can be accomplished php doctrine2 dql share improve this question The Doctrine team is not willing..

Doctrine 2.2 + Zend Framework pagination speed optimization

http://stackoverflow.com/questions/10962802/doctrine-2-2-zend-framework-pagination-speed-optimization

2 and zend paginator as reference query em createQuery dql setHydrationMode Doctrine ORM AbstractQuery HYDRATE_ARRAY setParameter.. paginator getIterator die 160 ms vs query em createQuery dql setHydrationMode Doctrine ORM AbstractQuery HYDRATE_OBJECT setParameter..

Cumulative DQL with Doctrine

http://stackoverflow.com/questions/1513384/cumulative-dql-with-doctrine

order by p.stock_id p.date_short Thanks php doctrine sum dql share improve this question Hey I have check the documentation..

Doctrine2: Best way to handle many-to-many with extra columns in reference table

http://stackoverflow.com/questions/3542243/doctrine2-best-way-to-handle-many-to-many-with-extra-columns-in-reference-table

can display a list of albums and tracks associated to them dql ' SELECT a tl t FROM Entity Album a JOIN a.tracklist tl JOIN.. t ORDER BY tl.position ASC ' albums em createQuery dql getResult foreach albums as album echo album getTitle . PHP_EOL..

Doctine 2 Restricting Associations with DQL

http://stackoverflow.com/questions/8240335/doctine-2-restricting-associations-with-dql

this php doctrine2 repository pattern dql share improve this question Having entitymanager in an entity..