1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/models/Invitation.php
Hillel Coren 55a8ef4951 Bug fixes
2014-04-23 10:20:01 +03:00

24 lines
347 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 URL::to('view') . '/' . $this->invitation_key;
}
}