first commit
This commit is contained in:
commit
405df0a122
3083 changed files with 69203 additions and 0 deletions
68
dev/Models/Salutation.php
Normal file
68
dev/Models/Salutation.php
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue