code: public function mergeOptions($newOptions)
      {
          foreach ($newOptions as $k => $v) {
              if (array_key_exists($k, $this->_options)) {
                  if ($this->_options[$k] !== $v) {
                      throw new Exception("Conflicting relationship settings between parent: {$this->parent->name} and child: {$this->child->name}!");
                  }
              } else {
                  $this->_options[$k] = $v;
              }
          }
          $this->_options = array_merge($this->_options, $newOptions);
      }
docs: [[@doctodo method_description:mergeOptions]].
  
  @param unknown $newOptions
  
  @throws Exception [[@doctodo exception_description:Exception]]