Example #1
0
 public function getIndexByName($indexName)
 {
     if (!isset($this->indexes[$indexName])) {
         throw SchemaException::spf('Table %s does not have index %s.', $this->name, $indexName);
     }
     return $this->indexes[$indexName];
 }