/**
  * Transforms the soa record to a string and sets the modification date
  * and the changedate
  */
 public function preUpdate(Records $record, PreUpdateEventArgs $event)
 {
     $record->setModified(new \DateTime());
     $record->setChangeDate(strtotime('now'));
     if ($record->getType() == 'SOA') {
         $transformer = new SoaTransformer();
         $record->setContent($transformer->reverseTransform($record->getContent()), true);
     }
 }