Öffne Katalog, Bibliothek und Testkauf für den MVP.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
463851d402
commit
fd6860efda
51 files changed
+2331
-31
No files matched your search
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Commerce;
|
||||
|
||||
use App\Domain\Catalog\OfferVersion;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
class OrderLine extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'order_id',
|
||||
'offer_version_id',
|
||||
'price_cents',
|
||||
'term_rule',
|
||||
'update_promise',
|
||||
'holder_kind',
|
||||
];
|
||||
|
||||
public function order(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Order::class);
|
||||
}
|
||||
|
||||
public function offerVersion(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(OfferVersion::class);
|
||||
}
|
||||
|
||||
public function scopeItems(): HasMany
|
||||
{
|
||||
return $this->hasMany(OrderScopeItem::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user