Exemplo n.º 1
0
 /**
  * Return the target database condition
  *
  * @return array|bool table structure or false on error
  *
  * @throws \RuntimeException
  */
 public function getTargetDefinitions()
 {
     if (!isset($this->targetDefinitions)) {
         $this->targetDefinitions = Yaml::read($this->tableDefinitionFile);
         if (null === $this->targetDefinitions) {
             throw new \RuntimeException("No schema definition " . $this->tableDefinitionFile);
         }
     }
     return $this->targetDefinitions;
 }