return $this->hasMany(Order::className(), [$fieldIdDocument => 'id']) | return $this->hasMany(Order::className(), [$fieldIdDocument => 'id']) | ||||
->with($defaultOptionsSearch['with']) | ->with($defaultOptionsSearch['with']) | ||||
->joinWith($defaultOptionsSearch['join_with']) | ->joinWith($defaultOptionsSearch['join_with']) | ||||
->orderBy('user.lastname ASC, user.name ASC, comment_point_sale ASC'); | |||||
->orderBy('distribution.date ASC'); | |||||
} | } | ||||