<commit_before><?php namespace Blindern\UKA\Billett;

class Ticketgroup extends \Eloquent {
    protected $model_suffix = '';
    protected $table = 'ticketgroups';

    protected $apiAllowedFields = array('id', 'event_id', 'is_active', 'is_published', 'is_normal', 'title', 'ticket_text', 'price', 'fee', 'limit');
    protected $apiAllowedRelations = array('event', 'tickets');

    public function getPriceAttribute($val) {
        return (float) $val;
    }

    public function getFeeAttribute($val) {
        return (float) $val;
    }

    public function tickets()
    {
        return $this->hasMany('\\Blindern\\UKA\\Billett\\Ticket'.$this->model_suffix, 'ticketgroup_id');
    }<commit_msg>Add 'order' to allowed API-fields for ticketgroups<commit_after><?php namespace Blindern\UKA\Billett;

class Ticketgroup extends \Eloquent {
    protected $model_suffix = '';
    protected $table = 'ticketgroups';

    protected $apiAllowedFields = array('id', 'event_id', 'is_active', 'is_published', 'is_normal', 'title', 'ticket_text', 'price', 'fee', 'limit', 'order');
    protected $apiAllowedRelations = array('event', 'tickets');

    public function getPriceAttribute($val) {
        return (float) $val;
    }

    public function getFeeAttribute($val) {
        return (float) $val;
    }

    public function tickets()
    {
        return $this->hasMany('\\Blindern\\UKA\\Billett\\Ticket'.$this->model_suffix, 'ticketgroup_id');
    }
{'fraction_non_alphanumeric': 0.15469613259668508, 'fraction_numerical': 0.0, 'mean_word_length': 3.878787878787879, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1339868', 'n_tokens_mistral': 461, 'n_tokens_neox': 447, 'n_words': 99}