Doctrine Project

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Doctrine Website
  • Doctrine Website
  • DWEB-70

Error in Documentation

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Documentation Documentation
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Component/s: Documentation
  • Labels:
    None

Description

In reference guide, 12: DQL http://www.doctrine-project.org/docs/orm/2.0/en/reference/dql-doctrine-query-language.html

12.2.4 DQL SELECT Examples

With COUNT DISTINCT:

<?php
$query = $em->createQuery('SELECT COUNT(DISTINCT u.name) FROM CmsUser');
$users = $query->getResult(); // array of ForumUser objects

Alias missing in the query.
It doesn't return ForumUser objects.

—

With Arithmetic Expression in WHERE clause:

<?php
$query = $em->createQuery('SELECT u FROM CmsUser u WHERE ((u.id + 5000) * u.id + 3) < 10000000');
$users = $query->getResult(); // array of ForumUser objects

It doesn't return ForumUser objects.

–

And after these examples the comments on $query->getResult(); that tells what is returned is missing.

Activity

  • All
  • Comments
  • History
  • Activity
  • Source
Hide
Permalink
Hakan Deryal added a comment - 23/Feb/11 8:17 AM

Added more errors.

Show
Hakan Deryal added a comment - 23/Feb/11 8:17 AM Added more errors.

People

  • Assignee:
    Jonathan H. Wage
    Reporter:
    Hakan Deryal
Vote (0)
Watch (0)

Dates

  • Created:
    23/Feb/11 8:09 AM
    Updated:
    23/Feb/11 8:17 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Doctrine Project. Try JIRA - bug tracking software for your team.