<?php

namespace app\modules\references\models;

use Yii;

/**
 * This is the model class for table "{{%employees_organisations}}".
 *
 * @property integer $id
 * @property integer $employee_id
 * @property integer $organisation_id
 */
class EmployeesOrganisations extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%employees_organisations}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            // [['employee_id', 'organisation_id'], 'required'],
            [['employee_id', 'organisation_id'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'employee_id' => Yii::t('app', 'Employee ID'),
            'organisation_id' => Yii::t('app', 'Organisation ID'),
        ];
    }
}
