Exemple #1
0
 /**
  * Update loader options.
  *
  * @param array $options
  * @return $this
  * @throws LoaderException
  */
 public function setOptions(array $options = [])
 {
     $this->options = $options + $this->options;
     if ($this->isJoinable() && !empty($this->parent) && $this->parent->getDatabase() != $this->getDatabase()) {
         throw new LoaderException("Unable to join tables located in different databases.");
     }
     return $this;
 }