Revert previous changes to Eloquent.
This commit is contained in:
@@ -275,7 +275,7 @@ abstract class Eloquent {
|
|||||||
$this->relating_key = strtolower(get_class($this)).'_id';
|
$this->relating_key = strtolower(get_class($this)).'_id';
|
||||||
|
|
||||||
return static::make($model)
|
return static::make($model)
|
||||||
->select(array(static::table($model).'.*'))
|
->select(static::table($model).'.*')
|
||||||
->join($this->relating_table, static::table($model).'.id', '=', $this->relating_table.'.'.strtolower($model).'_id')
|
->join($this->relating_table, static::table($model).'.id', '=', $this->relating_table.'.'.strtolower($model).'_id')
|
||||||
->where($this->relating_table.'.'.$this->relating_key, '=', $this->id);
|
->where($this->relating_table.'.'.$this->relating_key, '=', $this->id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user