/**
     * Create default config for a user
     */
    public function createDefaultConfig()
    {
        $config = new ChartConfig(
            null,
            new \DateTime(),
            $this->getUsername(),
            'StorageUsageCurrent',
            'c3js'
        );
        $this->repository->save($config);

        $config = new ChartConfig(
            null,
            new \DateTime(),
            $this->getUsername(),
            'StorageUsageLastMonth',
            'c3js'
        );
        $this->repository->save($config);

        $config = new ChartConfig(
            null,
            new \DateTime(),
            $this->getUsername(),
            'StorageUsagePerMonth',
            'c3js'
        );
        $this->repository->save($config);
    }
 /**
  * @param ChartConfig $config
  * @return boolean
  */
 public function save(ChartConfig $config)
 {
     return $this->repository->save($config);
 }