mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 15:13:29 +01:00
f9ea784d63
* Fix for wrong contact being deleted * dynamically load module relationships
30 lines
423 B
PHP
30 lines
423 B
PHP
<?php
|
|
|
|
namespace Modules\Notes\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Note extends Model
|
|
{
|
|
/*
|
|
protected $guarded = [
|
|
'id',
|
|
];
|
|
*/
|
|
protected $fillable = ["description"];
|
|
|
|
|
|
protected $table = 'notes';
|
|
|
|
public function client()
|
|
{
|
|
return $this->hasOne(App\Models\Client::class);
|
|
}
|
|
|
|
public function notes()
|
|
{
|
|
return $this->hasMany(Note::class);
|
|
}
|
|
|
|
}
|