public function syncPackages($type)
    {
        $criteria      = ['type' => $type];
        $em            = $this->getDoctrineHelper()->getEntityManager();
        $searchResults = $this->getHelper()->getPackages($criteria);

        foreach ($searchResults as $result) {
            $package = $this->getHelper()->getPackage($result);
            $this->syncPackage($package);
        }
        
        $em->flush();
    }