| 1 | <?php |
||
| 7 | class Point extends Base |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * The attributes that are mass assignable. |
||
| 12 | * |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $fillable = [ |
||
| 16 | 'name', |
||
| 17 | 'pointable_type', |
||
| 18 | 'pointable_id', |
||
| 19 | 'point_type_id' |
||
| 20 | ]; |
||
| 21 | |||
| 22 | protected $mappingProperties = array( |
||
| 23 | /** |
||
| 24 | * User Info |
||
| 25 | */ |
||
| 26 | 'name' => [ |
||
| 27 | 'type' => 'string', |
||
| 28 | "analyzer" => "standard", |
||
| 29 | ], |
||
| 30 | 'pointable_type' => [ |
||
| 31 | 'type' => 'string', |
||
| 32 | "analyzer" => "standard", |
||
| 33 | ], |
||
| 34 | 'pointable_id' => [ |
||
| 35 | 'type' => 'string', |
||
| 36 | "analyzer" => "standard", |
||
| 37 | ], |
||
| 38 | 'point_type_id' => [ |
||
| 39 | 'type' => 'string', |
||
| 40 | "analyzer" => "standard", |
||
| 41 | ], |
||
| 42 | ); |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get all of the users that are assigned this tag. |
||
| 46 | */ |
||
| 47 | public function users() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get all of the slaves that are assigned this tag. |
||
| 54 | */ |
||
| 55 | public function persons() |
||
| 59 | } |
||
| 60 |