fixed ambiguous type
This commit is contained in:
parent
89a0c23c95
commit
4337eab13e
@ -93,7 +93,7 @@ class Transaction extends Model
|
|||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $query->whereIn('type', (array) $types);
|
return $query->whereIn($this->table . '.type', (array) $types);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -76,7 +76,7 @@ class Contact extends Model
|
|||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $query->whereIn('type', (array) $types);
|
return $query->whereIn($this->table . '.type', (array) $types);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function scopeEmail($query, $email)
|
public function scopeEmail($query, $email)
|
||||||
|
@ -65,7 +65,7 @@ class Category extends Model
|
|||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $query->whereIn('type', (array) $types);
|
return $query->whereIn($this->table . '.type', (array) $types);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function scopeName($query, $name)
|
public function scopeName($query, $name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user