wrong relationships
This commit is contained in:
parent
ba7b6024ba
commit
66b1ee9c54
@ -59,16 +59,6 @@ class User extends Authenticatable
|
||||
return $this->hasOne('App\Models\Income\Customer', 'user_id', 'id');
|
||||
}
|
||||
|
||||
public function invoices()
|
||||
{
|
||||
return $this->hasMany('App\Models\Income\Invoice', 'customer_id', 'id');
|
||||
}
|
||||
|
||||
public function revenues()
|
||||
{
|
||||
return $this->hasMany('App\Models\Income\Revenue', 'customer_id', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Always capitalize the name when we retrieve it
|
||||
*/
|
||||
|
@ -53,11 +53,6 @@ class Invoice extends Model
|
||||
*/
|
||||
protected $cloneable_relations = ['items', 'totals'];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Auth\User', 'customer_id', 'id');
|
||||
}
|
||||
|
||||
public function customer()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Income\Customer');
|
||||
|
Loading…
x
Reference in New Issue
Block a user