orWhereHas method

Query<T> orWhereHas(
  1. String relationPath, [
  2. void callback(
    1. Query q
    )?
])

Implementation

Query<T> orWhereHas(
  String relationPath,
  [void Function(Query<dynamic> q)? callback]
) {
  final List<dynamic> collectedParams = [];

  final sql = _buildExists(
    relationPath.split('.'),
    model,
    model.table,
    callback,
    collectedParams,
  );

  base.addOrWhere(sql, collectedParams);
  return this;
}