public function hydrate($data, $entity) { $key = $this->mapping['fieldname']; $type = $this->getStorageType(); $value = $type->convertToPHPValue($data[$key], $this->getPlatform()); $this->set($entity, $value, $data); }