mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 07:02:34 +01:00
26 lines
476 B
PHP
Executable File
26 lines
476 B
PHP
Executable File
<?php
|
|
|
|
class Invitation extends EntityModel
|
|
{
|
|
protected $hidden = array('id', 'account_id', 'user_id', 'contact_id', 'created_at', 'updated_at', 'deleted_at', 'viewed_date');
|
|
|
|
public function invoice()
|
|
{
|
|
return $this->belongsTo('Invoice');
|
|
}
|
|
|
|
public function contact()
|
|
{
|
|
return $this->belongsTo('Contact');
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('User');
|
|
}
|
|
}
|
|
|
|
Invitation::created(function($invitation)
|
|
{
|
|
Activity::emailInvoice($invitation);
|
|
}); |