Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function count($column = self::DEFAULT_COUNTING_FIELD)
 {
     if ($column == self::DEFAULT_COUNTING_FIELD && !empty($this->loader->getPrimaryKey())) {
         $column = 'DISTINCT(' . $this->loader->getPrimaryKey() . ')';
     }
     return parent::count($column);
 }