/**
  * @param PowerDnsObjectInterface $domainObj
  * @param array $options
  * @param bool $force
  * @throws Exceptions\ValidationException
  * @return \SysEleven\PowerDnsBundle\Entity\Domains
  */
 public function update(PowerDnsObjectInterface $domainObj, array $options = array(), $force = false)
 {
     $domainObj = parent::update($domainObj, $options, false);
     /**
      * @type Domains $domainObj
      */
     if ($domainObj->needsSoaUpdate()) {
         $this->updateSoa($domainObj);
     }
     return $domainObj;
 }
 /**
  * Deletes a given record from the backend, updates the soa serial number, and
  * creates a history entry for the record
  *
  * @param PowerDnsObjectInterface $obj
  * @param bool $force
  * @return mixed
  */
 public function delete(PowerDnsObjectInterface $obj, $force = false)
 {
     /**
      * @type Records $obj
      */
     $domain = $obj->getDomain();
     if ($obj->getType() != 'SOA') {
         $this->createHistory($obj, 'DELETE');
     }
     parent::delete($obj);
     if ($obj->getType() != 'SOA') {
         $this->updateSoa($domain);
     }
     return true;
 }