-
Notifications
You must be signed in to change notification settings - Fork 0
/
Relationstatuss.php
102 lines (87 loc) · 2.46 KB
/
Relationstatuss.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
use Baum\Node;
/**
* Relationstatuss
*/
class Relationstatuss extends Node {
/**
* Table name.
*
* @var string
*/
protected $table = 'relationstatusses';
//////////////////////////////////////////////////////////////////////////////
//
// Below come the default values for Baum's own Nested Set implementation
// column names.
//
// You may uncomment and modify the following fields at your own will, provided
// they match *exactly* those provided in the migration.
//
// If you don't plan on modifying any of these you can safely remove them.
//
// /**
// * Column name which stores reference to parent's node.
// *
// * @var string
// */
// protected $parentColumn = 'parent_id';
// /**
// * Column name for the left index.
// *
// * @var string
// */
// protected $leftColumn = 'lft';
// /**
// * Column name for the right index.
// *
// * @var string
// */
// protected $rightColumn = 'rgt';
// /**
// * Column name for the depth field.
// *
// * @var string
// */
// protected $depthColumn = 'depth';
// /**
// * Column to perform the default sorting
// *
// * @var string
// */
// protected $orderColumn = null;
// /**
// * With Baum, all NestedSet-related fields are guarded from mass-assignment
// * by default.
// *
// * @var array
// */
// protected $guarded = array('id', 'parent_id', 'lft', 'rgt', 'depth');
//
// This is to support "scoping" which may allow to have multiple nested
// set trees in the same database table.
//
// You should provide here the column names which should restrict Nested
// Set queries. f.ex: company_id, etc.
//
// /**
// * Columns which restrict what we consider our Nested Set list
// *
// * @var array
// */
// protected $scoped = array();
//////////////////////////////////////////////////////////////////////////////
//
// Baum makes available two model events to application developers:
//
// 1. `moving`: fired *before* the a node movement operation is performed.
//
// 2. `moved`: fired *after* a node movement operation has been performed.
//
// In the same way as Eloquent's model events, returning false from the
// `moving` event handler will halt the operation.
//
// Please refer the Laravel documentation for further instructions on how
// to hook your own callbacks/observers into this events:
// http://laravel.com/docs/5.0/eloquent#model-events
}