public function getCostCenterChildrenIds($id)
  {
    $ids = array();

    $this->CostCenter->byParent($id)->each(function($CostCenter) use (&$ids)
    {
      if($CostCenter->is_group)
      {
        $ids = array_merge($ids, $this->getCostCenterChildrenIds($CostCenter->id));
      }

      array_push($ids, $CostCenter->id);
    });

    return $ids;
  }