示例#1
0
 /**
  * Processes all column based build commands.
  * A build command is an additional instruction for the Query Writer. It is processed only when
  * a column gets created. The build command is often used to instruct the writer to write some
  * extra SQL to create indexes or constraints. Build commands are stored in meta data of the bean.
  * They are only for internal use, try to refrain from using them in your code directly.
  *
  * @param  string           $table    name of the table to process build commands for
  * @param  string           $property name of the property to process build commands for
  * @param  OODBBean $bean     bean that contains the build commands
  *
  * @return void
  */
 private function processBuildCommands($table, $property, OODBBean $bean)
 {
     if ($inx = $bean->getMeta('buildcommand.indexes')) {
         if (isset($inx[$property])) {
             $this->writer->addIndex($table, $inx[$property], $property);
         }
     }
 }