Merge pull request #3017 from vincedom/2.4

Corrected link component tag : morphMany => morphToMany cf.#3004
This commit is contained in:
James Brooks
2018-04-20 09:30:25 +01:00
committed by GitHub

View File

@@ -147,11 +147,11 @@ class Component extends Model implements HasPresenter
/**
* Get the tags relation.
*
* @return \Illuminate\Database\Eloquent\Relations\MorphMany
* @return \Illuminate\Database\Eloquent\Relations\MorphToMany
*/
public function tags()
{
return $this->morphMany(Taggable::class, 'taggable');
return $this->morphToMany(Taggable::class, 'taggable');
}
/**