Esempio n. 1
0
 public function testDistinct()
 {
     $c = new ModelCriteria('bookstore', 'Book');
     $c->distinct();
     $sql = 'SELECT DISTINCT  FROM ';
     $params = array();
     $this->assertCriteriaTranslation($c, $sql, $params, 'distinct() adds a DISTINCT clause');
 }