Skip to content

How to do distinct

ichikaway edited this page Apr 21, 2011 · 2 revisions
<?php
    //$this->Post is Model.
    $params = array(
        'distinct' => 'posts',
        'key' => 'count',
        );
    $result = $this->Post->query( $params );
Clone this wiki locally