|
|
(Next) Automatic Table Linking and Joins |
||||
| |
|||||
|
|||||
void $DB_DataObject->groupBy (
string $group
)
Adds a group by condition. Calling this without any arguments clears the Group Condition
string $group - Grouping condition
This function can not be called statically.
The quote_identifiers configuration option will not affect data sent to groupBy.
Setting the Group by
<?php
$person = new DataObjects_Person;
$person->groupBy('name');
$person->groupBy('age, eye');
$person->find();
?>
Resulting SQL
|
|
(Next) Automatic Table Linking and Joins |
||||||||
| |
|||||||||
|
|||||||||