Hello, dear Kirby community!
Can you help me assign a field to a different variable in a model? What’s the correct way to do this?
class OfferPage extends Kirby\Cms\Page
{
public function offer()
{
$this->abonement()->old_price = 99; // <--- how to assign value?
$offer = $this->abonement()->toObject();
return $offer;
}
}