/** * @return \yii\db\ActiveQuery */ public function getEmpleados() { return $this->hasMany(Empleado::className(), ['cargo_id' => 'id']); }