src/Flipbox/OrmManager/DatabaseConnection.php
protected function isPrimaryKey(Table $table, Column $column)
	{
		if ($table->hasPrimaryKey()) {
			$primaryKeys = $table->getPrimaryKey()->getColumns();

			return in_array($column->getName(), $primaryKeys);
		}

		return false;
	}
protected function isPrimaryKey(Table $table, Column $column)
	{
		if ($table->hasPrimaryKey()) {
			$primaryKeys = $table->getPrimaryKey()->getColumns();

			return in_array($column->getName(), $primaryKeys);
		}

		return false;
	}
protected function isPrimaryKey ( Table $ table , Column $ column ) { if ( $ table -> hasPrimaryKey ( ) ) { $ primaryKeys = $ table -> getPrimaryKey ( ) -> getColumns ( ) ; return in_array ( $ column -> getName ( ) , $ primaryKeys ) ; } return false ; }
check is column primary key

@param Table $table
@param Column $column
@return bool
check is column primary key