| 1 | <?php |
||
| 16 | class Hierarchy extends Model |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var bool Indicates if the model should be timestamped. |
||
| 20 | */ |
||
| 21 | public $timestamps = false; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string The table associated with the model. |
||
| 25 | */ |
||
| 26 | protected $table = 'taxonomy_term_hierarchy'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get the term related to this entry |
||
| 30 | * |
||
| 31 | * @codeCoverageIgnore |
||
| 32 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 33 | */ |
||
| 34 | public function term() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get the parent term of this entry |
||
| 41 | * |
||
| 42 | * @codeCoverageIgnore |
||
| 43 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 44 | */ |
||
| 45 | public function parent() |
||
| 49 | } |
||
| 50 |