<commit_before><?php

/**
 * This is the model base class for the table "ccbr_branch".
 *
 * Columns in table "ccbr_branch" available as properties of the model:
 * @property string $ccbr_id
 * @property string $ccbr_ccmp_id
 * @property string $ccbr_name
 * @property string $ccrb_code
 * @property string $ccbr_notes
 * @property integer $ccbr_hide
 *
 * Relations of table "ccbr_branch" available as properties of the model:
 * @property CcmpCompany $ccbrCcmp
 */
abstract class BaseCcbrBranch extends CActiveRecord
{

    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

    public function tableName()
    {
        return 'ccbr_branch';
    }

    public function rules()
    {
        return array_merge(
            parent::rules(), array(
                array('ccbr_ccmp_id, ccbr_name', 'required'),
                array('ccrb_code, ccbr_notes, ccbr_hide', 'default', 'setOnEmpty' => true, 'value' => null),
                array('ccbr_hide', 'numerical', 'integerOnly' => true),
                array('ccbr_ccmp_id', 'length', 'max' => 10),
                array('ccbr_name', 'length', 'max' => 350),
                array('ccrb_code', 'length', 'max' => 50),
                array('ccbr_notes', 'safe'),
                array('ccbr_id, ccbr_ccmp_id, ccbr_name, ccrb_code, ccbr_notes, ccbr_hide', 'safe', 'on' => 'search'),
            )
        );
    }

    public function getItemLabel()
    {
        return (string) $this->ccbr_name;
    }

    public function behaviors()
    {
        return array_merge(
            parent::behaviors(), array(
                'savedRelated' => array(
                    'class' => 'vendor.schmunk42.relation.behaviors.GtcSaveRelationsBehavior'
                )
            )
        );
    }

    public function relations()
    {
        return array(
            'ccbrCcmp' => array(self::BELONGS_TO, 'CcmpCompany', 'ccbr_ccmp_id'),
        );
    }

    public function attributeLabels()
    {
        return array(
            'ccbr_id' => Yii::t('d2companyModule.crud', 'Ccbr'),
            'ccbr_ccmp_id' => Yii::t('d2companyModule.crud', 'Ccbr Ccmp'),
            'ccbr_name' => Yii::t('d2companyModule.crud', 'Ccbr Name'),
            'ccrb_code' => Yii::t('d2companyModule.crud', 'Ccrb Code'),
            'ccbr_notes' => Yii::t('d2companyModule.crud', 'Ccbr Notes'),
            'ccbr_hide' => Yii::t('d2companyModule.crud', 'Ccbr Hide'),
        );<commit_msg>ItemLabel korigets<commit_after><?php

/**
 * This is the model base class for the table "ccbr_branch".
 *
 * Columns in table "ccbr_branch" available as properties of the model:
 * @property string $ccbr_id
 * @property string $ccbr_ccmp_id
 * @property string $ccbr_name
 * @property string $ccrb_code
 * @property string $ccbr_notes
 * @property integer $ccbr_hide
 *
 * Relations of table "ccbr_branch" available as properties of the model:
 * @property CcmpCompany $ccbrCcmp
 */
abstract class BaseCcbrBranch extends CActiveRecord
{

    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

    public function tableName()
    {
        return 'ccbr_branch';
    }

    public function rules()
    {
        return array_merge(
            parent::rules(), array(
                array('ccbr_ccmp_id, ccbr_name', 'required'),
                array('ccrb_code, ccbr_notes, ccbr_hide', 'default', 'setOnEmpty' => true, 'value' => null),
                array('ccbr_hide', 'numerical', 'integerOnly' => true),
                array('ccbr_ccmp_id', 'length', 'max' => 10),
                array('ccbr_name', 'length', 'max' => 350),
                array('ccrb_code', 'length', 'max' => 50),
                array('ccbr_notes', 'safe'),
                array('ccbr_id, ccbr_ccmp_id, ccbr_name, ccrb_code, ccbr_notes, ccbr_hide', 'safe', 'on' => 'search'),
            )
        );
    }

    public function getItemLabel()
    {
        return (string) $this->ccbrCcmp->ccmp_name . ' ' . $this->ccbr_name ;
    }

    public function behaviors()
    {
        return array_merge(
            parent::behaviors(), array(
                'savedRelated' => array(
                    'class' => 'vendor.schmunk42.relation.behaviors.GtcSaveRelationsBehavior'
                )
            )
        );
    }

    public function relations()
    {
        return array(
            'ccbrCcmp' => array(self::BELONGS_TO, 'CcmpCompany', 'ccbr_ccmp_id'),
        );
    }

    public function attributeLabels()
    {
        return array(
            'ccbr_id' => Yii::t('d2companyModule.crud', 'Ccbr'),
            'ccbr_ccmp_id' => Yii::t('d2companyModule.crud', 'Ccbr Ccmp'),
            'ccbr_name' => Yii::t('d2companyModule.crud', 'Ccbr Name'),
            'ccrb_code' => Yii::t('d2companyModule.crud', 'Ccrb Code'),
            'ccbr_notes' => Yii::t('d2companyModule.crud', 'Ccbr Notes'),
            'ccbr_hide' => Yii::t('d2companyModule.crud', 'Ccbr Hide'),
        );
{'fraction_non_alphanumeric': 0.13983642529423498, 'fraction_numerical': 0.005984440454817474, 'mean_word_length': 2.387837837837838, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, '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': '782000', 'n_tokens_mistral': 1641, 'n_tokens_neox': 1584, 'n_words': 338}