Commit a0195e93 authored by Taylor Otwell's avatar Taylor Otwell

Adjust Eloquent to pass array of columns when selecting.

parent 00b064c7
......@@ -275,7 +275,7 @@ abstract class Eloquent {
$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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment