Fixed issue with count() and composite column primary keys
This commit is contained in:
parent
0e990f7594
commit
75a1ead588
1 changed files with 1 additions and 1 deletions
|
@ -1378,7 +1378,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
|
|||
|
||||
// build the query base
|
||||
$q = 'SELECT COUNT(DISTINCT ' . $this->getTableAlias($componentAlias)
|
||||
. '.' . $table->getIdentifier()
|
||||
. '.' . implode(',', (array) $table->getIdentifier())
|
||||
. ') AS num_results';
|
||||
|
||||
foreach ($this->parts['select'] as $field) {
|
||||
|
|
Loading…
Add table
Reference in a new issue