public function bindValues() { parent::bindValues(); if (!isset($this->entity)) { return; } $this->entity->currency = $this->currency->getValue(); $this->entity->amount = $this->amount->getValue(); return $this; }