previous->orderBy() (Previous) (Next) Automatic Table Linking and Joinsnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

->groupBy()

->groupBy() – Ajoute une condition 'group by'

Synopsis

void $DB_DataObject->groupBy ( string $group )

Description

Ajoute une condition 'group by'. L'appel à cette méthode sans argument efface la condition de groupe.

Parameter

  • string $group - Condition de groupe

Note

This function can not be called statically.

Example

Définission d'un 'group by'

<?php
$person 
= new DataObjects_Person;
$person->groupBy('name');
$person->groupBy('age, eye');
$person->find();
?>

SQL résultant


SELECT * FROM person GROUP BY name, age, eye
previous->orderBy() (Previous) (Next) Automatic Table Linking and Joinsnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.