1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 14:42:42 +01:00
invoiceninja/app/models/Invitation.php
Hillel Coren 0948b46ea2 Bug fixes
2015-01-11 13:56:58 +02:00

25 lines
401 B
PHP
Executable File

<?php
class Invitation extends EntityModel
{
public function invoice()
{
return $this->belongsTo('Invoice');
}
public function contact()
{
return $this->belongsTo('Contact');
}
public function user()
{
return $this->belongsTo('User');
}
public function getLink()
{
return SITE_URL.'/view/'.$this->invitation_key;
}
}