public function getDbValue() { $value = $this->getValue(); if ($this->isNull($this->value)) { $this->value = $value; } $value = $this->processToDbValue($value); return $this->value = $value; }
/** * @inheritDoc */ public function getDbValue() { $value = $this->getValue(); if ($value instanceof AbstractEntity) { return $this->processToDbValue($value->id); } return parent::getDbValue(); }