42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
* Date: Thu, 21 Mar 2019 13:40:08 +0100.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class FewoLodgingType
|
|
*
|
|
* @property int $id
|
|
* @property string $name
|
|
* @property \Illuminate\Database\Eloquent\Collection $fewo_lodgings
|
|
* @package App\Models
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingType newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingType newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingType query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingType whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoLodgingType whereName($value)
|
|
* @property-read int|null $fewo_lodgings_count
|
|
* @mixin \Eloquent
|
|
*/
|
|
class FewoLodgingType extends Model
|
|
{
|
|
protected $connection = 'mysql_stern';
|
|
|
|
protected $table = 'fewo_lodging_type';
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'name'
|
|
];
|
|
|
|
public function fewo_lodgings()
|
|
{
|
|
return $this->hasMany(\App\Models\FewoLodging::class, 'type_id');
|
|
}
|
|
}
|