2013-11-28 18:40:13 +02:00
|
|
|
<?php
|
|
|
|
|
|
2013-12-04 18:20:14 +02:00
|
|
|
class Invitation extends EntityModel
|
2013-11-28 18:40:13 +02:00
|
|
|
{
|
|
|
|
|
public function invoice()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo('Invoice');
|
|
|
|
|
}
|
2013-12-02 14:22:29 +02:00
|
|
|
|
|
|
|
|
public function contact()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo('Contact');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function user()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo('User');
|
|
|
|
|
}
|
2014-04-23 10:20:01 +03:00
|
|
|
|
|
|
|
|
public function getLink()
|
|
|
|
|
{
|
|
|
|
|
return URL::to('view') . '/' . $this->invitation_key;
|
|
|
|
|
}
|
2013-12-30 22:17:45 +02:00
|
|
|
}
|