コード例 #1
0
ファイル: DBTable.php プロジェクト: justthefish/hesper
 /**
  * @throws WrongArgumentException
  * @return DBTable
  **/
 public function addColumn(DBColumn $column)
 {
     $name = $column->getName();
     Assert::isFalse(isset($this->columns[$name]), "column '{$name}' already exist");
     $this->order[] = $this->columns[$name] = $column;
     $column->setTable($this);
     return $this;
 }
コード例 #2
0
 protected function makeSequenceName(DBColumn $column)
 {
     return $column->getTable()->getName() . '_' . $column->getName();
 }