/**
  * @return \yii\db\ActiveQuery
  */
 public function getTrashPlace()
 {
     return $this->hasOne(TrashPlace::className(), ['id' => 'trash_place_id']);
 }
 public function getTrashPlaces()
 {
     return $this->hasMany(TrashPlace::className(), ['id' => 'trash_place_id'])->viaTable('main_trash_place', ['main_id' => 'id']);
 }