255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'department_id' => Yii::t('app', 'department_id'), 'name' => Yii::t('app', 'name'), ]; } /** * @return \yii\db\ActiveQuery */ public function getTeams() { return $this->hasMany(Team::className(), ['department_id' => 'department_id']); } }