<?php defined('SYSPATH') or die('No direct access allowed.'); class Model_Auction_Offer extends ORM { protected $_belongs_to = array('user' => array(), 'blog' => array()); static public function getOffers( $id ) { $auction_offer = ORM::Factory('auction_offer')->where('auctions_id','=', $id)->order_by('amount','desc')->find_all(); return $auction_offer; } }