Adjust Eloquent to pass array of columns when selecting.
This commit is contained in:
parent
00b064c7d5
commit
a0195e9386
|
|
@ -275,7 +275,7 @@ public function has_and_belongs_to_many($model, $table = null)
|
|||
$this->relating_key = strtolower(get_class($this)).'_id';
|
||||
|
||||
return static::make($model)
|
||||
->select(static::table($model).'.*')
|
||||
->select(array(static::table($model).'.*'))
|
||||
->join($this->relating_table, static::table($model).'.id', '=', $this->relating_table.'.'.strtolower($model).'_id')
|
||||
->where($this->relating_table.'.'.$this->relating_key, '=', $this->id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue