mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 21:52:35 +01:00
17 lines
291 B
PHP
Executable File
17 lines
291 B
PHP
Executable File
<?php
|
|
|
|
class InvoiceItem extends Eloquent
|
|
{
|
|
protected $softDelete = true;
|
|
protected $hidden = array('created_at', 'updated_at', 'deleted_at');
|
|
|
|
public function invoice()
|
|
{
|
|
return $this->belongsTo('Invoice');
|
|
}
|
|
|
|
public function product()
|
|
{
|
|
return $this->belongsTo('Product');
|
|
}
|
|
} |