more qualified column
This commit is contained in:
parent
b008e8aa2e
commit
d3f80e5828
@ -103,7 +103,7 @@ abstract class Model extends Eloquent implements Ownable
|
|||||||
*/
|
*/
|
||||||
public function scopeCompanyId($query, $company_id)
|
public function scopeCompanyId($query, $company_id)
|
||||||
{
|
{
|
||||||
return $query->where($this->getTable() . '.company_id', '=', $company_id);
|
return $query->where($this->qualifyColumn('company_id'), '=', $company_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user