mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Cleaned up some tests and moved some methods.
This commit is contained in:
@@ -23,7 +23,7 @@ use LaravelBook\Ardent\Builder;
|
||||
* @method static \Illuminate\Database\Query\Builder|\Account whereAccountTypeId($value)
|
||||
* @method static \Illuminate\Database\Query\Builder|\Account whereName($value)
|
||||
* @method static \Illuminate\Database\Query\Builder|\Account whereActive($value)
|
||||
* @method static \Account accountType($types)
|
||||
* @method static \Account accountTypeIn($types)
|
||||
*/
|
||||
class Account extends Ardent
|
||||
{
|
||||
@@ -113,7 +113,7 @@ class Account extends Ardent
|
||||
return $this->belongsTo('User');
|
||||
}
|
||||
|
||||
public function scopeAccountType(Builder $query, array $types) {
|
||||
public function scopeAccountTypeIn(Builder $query, array $types) {
|
||||
if(is_null($this->joinedAccountTypes)) {
|
||||
$query->leftJoin('account_types','account_types.id','=','accounts.account_type_id');
|
||||
$this->joinedAccountTypes = true;
|
||||
|
Reference in New Issue
Block a user