/** * Creates a new Domain in the backend. Note: the parameter $force is disabled. * * @param PowerDnsObjectInterface $domainObj * @param array $options * @param bool $force * @throws Exceptions\ValidationException * @return \SysEleven\PowerDnsBundle\Entity\Domains */ public function create(PowerDnsObjectInterface $domainObj, array $options = array(), $force = false) { $domainObj = parent::create($domainObj, $options, false); /** * @type Domains $domainObj */ $this->createSoa($domainObj); return $this->get($domainObj->getId()); }
/** * Creates a new record in the backend, updates the soa serial number, and * creates a history entry for the record * * @param PowerDnsObjectInterface $obj * @param array $options * @param bool $force * *@return mixed */ public function create(PowerDnsObjectInterface $obj, array $options = array(), $force = false) { /** * @type Records $obj */ $obj = parent::create($obj, $options, $force); if ($obj->getType() != 'SOA') { $this->updateSoa($obj->getDomain()); $this->createHistory($obj, 'CREATE'); } return $obj; }