Connect CalDAV todos to DB-Items, finish todo component and add it to pipeline items
This commit is contained in:
@@ -39,4 +39,12 @@ public function notes()
|
||||
{
|
||||
return $this->morphMany(Note::class, 'notable');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the todos
|
||||
*/
|
||||
public function todos()
|
||||
{
|
||||
return $this->morphMany(Todo::class, 'todoable');
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -31,6 +31,8 @@ class Todo extends Model
|
||||
'last_modified',
|
||||
'parent',
|
||||
'object',
|
||||
'todoable_id',
|
||||
'todoable_type'
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
@@ -53,4 +55,4 @@ public function children()
|
||||
{
|
||||
return $this->hasMany(self::class, 'parent');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user