68 lines
1.9 KiB
PHP
68 lines
1.9 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class Salutation
|
|
*
|
|
* @property int $id
|
|
* @property Collection|Contact[] $contacts
|
|
* @property Collection|InvoiceBillingAddress[] $invoice_billing_addresses
|
|
* @property Collection|NewsletterSubscription[] $newsletter_subscriptions
|
|
* @property SalutationTranslation $salutation_translation
|
|
* @property Collection|SfGuardUserProfile[] $sf_guard_user_profiles
|
|
* @property Collection|UserBillingAddress[] $user_billing_addresses
|
|
* @package App\Models
|
|
* @property-read int|null $contacts_count
|
|
* @property-read int|null $invoice_billing_addresses_count
|
|
* @property-read int|null $newsletter_subscriptions_count
|
|
* @property-read int|null $sf_guard_user_profiles_count
|
|
* @property-read int|null $user_billing_addresses_count
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Salutation newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Salutation newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Salutation query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Salutation whereId($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class Salutation extends Model
|
|
{
|
|
protected $table = 'salutation';
|
|
public $timestamps = false;
|
|
|
|
public function contacts()
|
|
{
|
|
return $this->hasMany(Contact::class);
|
|
}
|
|
|
|
public function invoice_billing_addresses()
|
|
{
|
|
return $this->hasMany(InvoiceBillingAddress::class);
|
|
}
|
|
|
|
public function newsletter_subscriptions()
|
|
{
|
|
return $this->hasMany(NewsletterSubscription::class);
|
|
}
|
|
|
|
public function salutation_translation()
|
|
{
|
|
return $this->hasOne(SalutationTranslation::class, 'id');
|
|
}
|
|
|
|
public function sf_guard_user_profiles()
|
|
{
|
|
return $this->hasMany(SfGuardUserProfile::class);
|
|
}
|
|
|
|
public function user_billing_addresses()
|
|
{
|
|
return $this->hasMany(UserBillingAddress::class);
|
|
}
|
|
}
|