PluginProbe
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration / trunk
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration vtrunk
2.0.15 2.0.12 2.0.10 2.0.4 2.0.1 2.0.0 1.95.3 1.95.2 1.95 1.91.6 trunk 1.11 1.12 1.13 1.20 1.21 1.22 1.23 1.30 1.31 1.32 1.35 1.40 1.41 1.45 All 41 releases
← All changes | app/Models/TaskMeta.php +11 -0 1.31trunk View file →
@@ -1,7 +1,8 @@
1 1 <?php
2 2
3 3 namespace FluentBoards\App\Models;
4 +use FluentBoards\App\Services\Constant;
4 5
5 6 class TaskMeta extends Model
6 7 {
7 8 protected $table = 'fbs_task_metas';
@@ -26,6 +27,16 @@
26 27
27 28 public function getValueAttribute($value)
28 29 {
29 30 return \maybe_unserialize($value);
31 + }
32 +
33 + public function subtasks()
34 + {
35 + return $this->belongsToMany(
36 + Task::class,
37 + 'fbs_task_metas',
38 + 'value',
39 + 'task_id'
40 + )->where('key', Constant::SUBTASK_GROUP_CHILD);
30 41 }
31 42 }