public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(array('user_id, item_id, create_time', 'length', 'max' => 10), array('desc', 'safe'), array('wishlist_id, user_id, item_id, desc, create_time', 'safe', 'on' => 'search'));
}