Relationship problems? (relationship with where)

Hello,

I have this relationship at my model:

public function customer_price_change_beta()
    {
       return $this->hasOne(CustomerPriceChangesBeta::class, 'customer_id', 'customer_id')
            ->where('product_id', $this->product_id)
            ;
    }


The relationships work very well outside filamentphp (eg at controller and lavarel's blade)

At filamentphp I get an empty string.

If I remove the where statement the relationship returns data (but it is wrong)

This is a Filament bug?
Was this page helpful?