morphTo(); } public function transaction(): BelongsTo { return $this->belongsTo(StatementTransaction::class, 'statement_transaction_id', 'id'); } public function scopeGetSiblingsOwner($query) { $query->where('system', $this->system) ->where('owner_type', $this->owner_type) ->where('owner_id', $this->owner_id); } }