diff options
Diffstat (limited to 'src/Models/User/HasUserModel.php')
-rw-r--r-- | src/Models/User/HasUserModel.php | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/Models/User/HasUserModel.php b/src/Models/User/HasUserModel.php index 6d1323de..2b7fdda9 100644 --- a/src/Models/User/HasUserModel.php +++ b/src/Models/User/HasUserModel.php @@ -3,17 +3,11 @@ namespace Engelsystem\Models\User; use Engelsystem\Models\BaseModel; -use Illuminate\Database\Eloquent\Relations\BelongsTo; -/** - * @property integer $user_id - * - * @property-read \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\User $user - * - * @method static \Illuminate\Database\Query\Builder|static whereUserId($value) - */ abstract class HasUserModel extends BaseModel { + use UsesUserModel; + /** @var string The primary key for the model */ protected $primaryKey = 'user_id'; @@ -24,12 +18,4 @@ abstract class HasUserModel extends BaseModel /** The relationships that should be touched on save */ protected $touches = ['user']; - - /** - * @return BelongsTo - */ - public function user() - { - return $this->belongsTo(User::class); - } } |