Ejemplo n.º 1
0
 /**
  * @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;
 }
Ejemplo n.º 2
0
 protected function makeSequenceName(DBColumn $column)
 {
     return $column->getTable()->getName() . '_' . $column->getName();
 }