/**
  * @param assetParams $assetParam
  */
 protected function assetParamDeleted(assetParams $assetParam)
 {
     //In Case Flavor Deleted Belongs To Partner 0 Exit Without Deleteing
     if ($assetParam->getPartnerId() == 0) {
         KalturaLog::log("Deleting Flavor Param Of Partner 0 Is Restricted");
         return;
     }
     $c = new Criteria();
     $c->setLimit(100);
     $c->add(flavorParamsConversionProfilePeer::FLAVOR_PARAMS_ID, $assetParam->getId());
     for (;;) {
         $flavorParamsConversionProfiles = flavorParamsConversionProfilePeer::doSelect($c);
         foreach ($flavorParamsConversionProfiles as $flavorParamsConversionProfile) {
             /* @var $flavorParamsConversionProfile flavorParamsConversionProfile */
             $flavorParamsConversionProfile->delete();
         }
         if (count($flavorParamsConversionProfiles) < 100) {
             break;
         }
         flavorParamsConversionProfilePeer::clearInstancePool();
     }
     KalturaLog::info("Flavor Params Conversion Profile Relations were deleted for flavor param id [" . $assetParam->getId() . "]");
 }