1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/models/Invitation.php

24 lines
345 B
PHP
Raw Normal View History

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