public function onDomainMod(\Hollo\BindBundle\Event\FilterDomainEvent $event)
 {
     $queue = new \Hollo\BindBundle\Entity\ModQueue();
     $queue->setDomain($event->getDomain());
     $queue->setType('domain.modified');
     $this->em->persist($queue);
     $this->em->flush();
 }
 public function onDomainAdd(\Hollo\BindBundle\Event\FilterDomainEvent $event)
 {
     $domain = $event->getDomain();
     foreach ($this->nameservers as $ns) {
         $record = new \Hollo\BindBundle\Entity\Record();
         $record->setDomain($domain);
         $record->setAddress($ns);
         $record->setType('NS');
         $this->em->persist($record);
     }
     $this->em->flush();
 }