Esempio n. 1
0
 protected function updatedTransformMetadataFailed(BatchJob $dbBatchJob, kTransformMetadataJobData $data, BatchJob $twinJob = null)
 {
     if (!$data->getMetadataProfileId()) {
         return $dbBatchJob;
     }
     $metadataProfile = MetadataProfilePeer::retrieveById($data->getMetadataProfileId());
     if (!$metadataProfile) {
         return $dbBatchJob;
     }
     $metadataProfile->setStatus(MetadataProfile::STATUS_DEPRECATED);
     $metadataProfile->save();
     return $dbBatchJob;
 }
Esempio n. 2
0
 protected function updatedTransformMetadataFailed(BatchJob $dbBatchJob, kTransformMetadataJobData $data)
 {
     if (!$data->getMetadataProfileId()) {
         return $dbBatchJob;
     }
     $metadataProfile = MetadataProfilePeer::retrieveByPK($data->getMetadataProfileId());
     if (!$metadataProfile) {
         return $dbBatchJob;
     }
     if ($data->getSrcXslPath()) {
         $metadataProfile->setStatus(MetadataProfile::STATUS_DEPRECATED);
         $metadataProfile->save();
     }
     return $dbBatchJob;
 }