public function modifyTable()
    {
        $table = $this->getTable();
        if (!$table->hasPrimaryKey() && !$table->hasBehavior('concrete_inheritance')) {
            $columnAttributes = array_merge(['primaryKey' => 'true'], $this->getParameters());
            $this->getTable()->addColumn($columnAttributes);
        }
    }
public function modifyTable()
    {
        $table = $this->getTable();
        if (!$table->hasPrimaryKey() && !$table->hasBehavior('concrete_inheritance')) {
            $columnAttributes = array_merge(['primaryKey' => 'true'], $this->getParameters());
            $this->getTable()->addColumn($columnAttributes);
        }
    }
public function modifyTable ( ) { $ table = $ this -> getTable ( ) ; if ( ! $ table -> hasPrimaryKey ( ) && ! $ table -> hasBehavior ( 'concrete_inheritance' ) ) { $ columnAttributes = array_merge ( [ 'primaryKey' => 'true' ] , $ this -> getParameters ( ) ) ; $ this -> getTable ( ) -> addColumn ( $ columnAttributes ) ; } }
Add the primary key to the current table
Add the primary key to the current table