src/Flipbox/OrmManager/DatabaseConnection.php
protected function getTableFields(Table $table)
	{
		$fileds = [];

		foreach ($table->getColumns() as $column) {
			$fileds[] = [
	            'name' => $column->getName(),
	            'type' => $column->getType()->getName(),
	            'not_null' => $column->getNotnull(),
	            'length' => $column->getLength(),
	            'unsigned' => $column->getUnsigned(),
	            'autoincrement' => $column->getAutoincrement(),
	            'primary_key' => $this->isPrimaryKey($table, $column),
	            'foreign_key' => $this->isForeignKey($table, $column)
			];
		}

		return $fileds;
	}
protected function getTableFields(Table $table)
	{
		$fileds = [];

		foreach ($table->getColumns() as $column) {
			$fileds[] = [
	            'name' => $column->getName(),
	            'type' => $column->getType()->getName(),
	            'not_null' => $column->getNotnull(),
	            'length' => $column->getLength(),
	            'unsigned' => $column->getUnsigned(),
	            'autoincrement' => $column->getAutoincrement(),
	            'primary_key' => $this->isPrimaryKey($table, $column),
	            'foreign_key' => $this->isForeignKey($table, $column)
			];
		}

		return $fileds;
	}
protected function getTableFields ( Table $ table ) { $ fileds = [ ] ; foreach ( $ table -> getColumns ( ) as $ column ) { $ fileds [ ] = [ 'name' => $ column -> getName ( ) , 'type' => $ column -> getType ( ) -> getName ( ) , 'not_null' => $ column -> getNotnull ( ) , 'length' => $ column -> getLength ( ) , 'unsigned' => $ column -> getUnsigned ( ) , 'autoincrement' => $ column -> getAutoincrement ( ) , 'primary_key' => $ this -> isPrimaryKey ( $ table , $ column ) , 'foreign_key' => $ this -> isForeignKey ( $ table , $ column ) ] ; } return $ fileds ; }
get database fileds

@param Table $table
@return array
get database fileds