1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 14:42:42 +01:00
invoiceninja/app/models/Payment.php
2013-11-26 23:45:10 +02:00

16 lines
223 B
PHP
Executable File

<?php
class Payment extends Eloquent
{
protected $softDelete = true;
public function invoice()
{
return $this->belongsTo('Invoice');
}
}
Payment::created(function($payment)
{
Activity::createPayment($payment);
});