Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 310 Bytes
<?php
namespace li3_github\models;
class Orgs extends \lithium\data\Model {
protected $_meta = array('connection' => 'github');
}
Orgs::finder('repos', function($self, $params, $chain) {
$params['options']['conditions']['type'] = 'repos';
$data = $chain->next($self, $params, $chain);
return $data;
});