mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-12-10 02:45:32 -05:00
26 lines
373 B
PHP
26 lines
373 B
PHP
<?php
|
|
|
|
class Invitation extends Eloquent
|
|
{
|
|
protected $softDelete = true;
|
|
|
|
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);
|
|
}); |