public static function fill(array $data, COCEntity &$entity)
    {
        $vars = get_object_vars($entity);
        foreach ($vars as $var => $_) {
            if (array_key_exists($var, $data)) {
                $entity->{$var} = $data[$var];
            }
        }
    }