mirror of https://github.com/movim/movim
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
336 B
20 lines
336 B
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Reaction extends Model
|
|
{
|
|
protected $primaryKey = 'message_mid';
|
|
|
|
public function message()
|
|
{
|
|
return $this->belongsTo('App\Message');
|
|
}
|
|
|
|
public function contact()
|
|
{
|
|
return $this->hasOne('App\Contact', 'id', 'jidfrom');
|
|
}
|
|
}
|