1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00
invoiceninja/Modules/Notes/Entities/Note.php
David Bomba f9ea784d63
Module relationships (#2556)
* Fix for wrong contact being deleted

* dynamically load module relationships
2018-12-16 00:04:46 +11:00

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);
}
}