Skip to content

Commit

Permalink
wrong relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Dec 11, 2017
1 parent ba7b602 commit 66b1ee9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
10 changes: 0 additions & 10 deletions app/Models/Auth/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,6 @@ public function customer()
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
*/
Expand Down
5 changes: 0 additions & 5 deletions app/Models/Income/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 66b1ee9

Please sign in to comment.