public function unhydrate($object)
    {
        $datas = parent::unhydrate($object);
        $properties = $this->classMetadata->getPropertiesInfos();
        foreach ($properties as $name => $infos) {
            if ($infos->getMetadata()) {
                if (isset($datas[$infos->getField()])) {
                    $datas["metadata"][$infos->getField()] = $datas[$infos->getField()];
                    unset($datas[$infos->getField()]);
                }
            }
        }
        return $datas;
    }