| 1 | <?php |
||
| 8 | class Phone extends Base |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * The attributes that are mass assignable. |
||
| 13 | * |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | protected $fillable = [ |
||
| 17 | 'number', |
||
| 18 | ]; |
||
| 19 | |||
| 20 | protected $mappingProperties = array( |
||
| 21 | /** |
||
| 22 | * User Info |
||
| 23 | */ |
||
| 24 | 'number' => [ |
||
| 25 | 'type' => 'string', |
||
| 26 | "analyzer" => "standard", |
||
| 27 | ], |
||
| 28 | ); |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get all of the slaves that are assigned this tag. |
||
| 32 | */ |
||
| 33 | public function persons() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get all of the users that are assigned this tag. |
||
| 40 | */ |
||
| 41 | public function users() |
||
| 45 | } |
||
| 46 |