mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 15:13:29 +01:00
25 lines
431 B
PHP
Executable File
25 lines
431 B
PHP
Executable File
<?php
|
|
|
|
class Invitation extends EntityModel
|
|
{
|
|
public function invoice()
|
|
{
|
|
return $this->belongsTo('Invoice');
|
|
}
|
|
|
|
public function contact()
|
|
{
|
|
return $this->belongsTo('Contact')->withTrashed();
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('User')->withTrashed();
|
|
}
|
|
|
|
public function getLink()
|
|
{
|
|
return SITE_URL.'/view/'.$this->invitation_key;
|
|
}
|
|
}
|