dql
How can I specify HYDRATE_ARRAY in the table convenience methods?
With Doctrine 2, is there any way to specify HYDRATE_ARRAY when I use the convenience 开发者_C百科methods EntityRepository::find or EntityRepository::findOneById? Do I have to write my own DQL query,[详细]
2023-03-25 11:47 分类:问答specify key values for return $query->fetchArray()?
Using Doctrine, I\'m doing a query kinda like this: $query = Doctrine_Query::create()->select(\'id,name\')->from(\'people\');[详细]
2023-03-22 13:49 分类:问答DQL association error when run query
Im new in DQL and doctrine 2 so, please be patient. I have this query: select c, m from A10\\CrmBundle\\Entity\\Crm c inner join c.irszam m on m.irszam = c.cim1irszam where c.kod = ?1[详细]
2023-03-15 14:31 分类:问答Row Number in Symfony Doctrine Query
I am storing data for lap times in a database, the data consists of a distance, time, average speed and max speed.[详细]
2023-03-11 06:48 分类:问答Doctrine DQL Reserved Words as entity names
Using Doctrine 2. I have an entity called \'size\' and I\'m trying to form some DQL (using the QueryBuilder) to pull these entities from the database.[详细]
2023-03-06 12:47 分类:问答Limiting a doctrine query with a fetch-joined collection?
I have a doctrine query that returns blog posts and their comments: SELECT b, c FROM BlogPost b LEFT JOIN b.comments c[详细]
2023-02-24 07:15 分类:问答Doctrine query for authentication
Consider this query: $query = Doctrine::getTable(\'sfGuardUser\') ->createQuery(\'u\') ->innerJoin(\'u.Groups g\')[详细]
2023-02-22 18:36 分类:问答Console dql join syntax?
I find it quite handy to write dql statements in console. For example, ./symfony doctrine:dql \"from sfGuardUser where id = 8\"[详细]
2023-02-20 15:53 分类:问答Is this the proper way to handle an ordered array with Doctrine2's WHERE IN expression?
Using Zend Lucene Search, I am returning a list of relevance-ordered IDs that map to blog records that I will fetch from the database.[详细]
2023-02-20 07:55 分类:问答Doctrine where in with Doctrine_Query
is it possible to make : $q->createQuery(\'q\') ->whereIn(\'q.id\', $q2) Where 开发者_如何学JAVA$q2 is an other Doctrine_Query object. Because my subquery is complex and I don\'t want to writ[详细]
2023-02-20 06:58 分类:问答