Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 2 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<?php

    namespace App\Models;

    use Illuminate\Database\Eloquent\Model;
    use Illuminate\Database\Eloquent\Relations\BelongsTo;

    /**
 * App\Models\Property
 *
 * @property int $id
 * @property int|null $tool_id
 * @property string $name
 * @property string $interner_name
 * @property string $beschreibung
 * @property string $hilfetext
 * @property int|null $rang
 * @property string $hidden
 * @property string $quick_edit
 * @property-read \App\Models\Tool|null $Tool
 * @method static \Illuminate\Database\Eloquent\Builder|Property newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Property newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Property query()
 * @method static \Illuminate\Database\Eloquent\Builder|Property whereBeschreibung($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Property whereHidden($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Property whereHilfetext($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Property whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Property whereInternerName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Property whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Property whereQuickEdit($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Property whereRang($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Property whereToolId($value)
 * @mixin \Eloquent
 */
class Property extends Model
    {
        protected $connection = "cms";

        public function Tool(): BelongsTo
        {
            return $this->belongsTo( Tool::class )->orderBy( 'tools.rang' );
        }

    }