Commit cfcad35f authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge remote-tracking branch 'origin/master'

parents 2ddd5356 eb80a379
...@@ -46,7 +46,7 @@ class Configuration ...@@ -46,7 +46,7 @@ class Configuration
* *
* @param SQLLogger $logger * @param SQLLogger $logger
*/ */
public function setSQLLogger(SQLLogger $logger) public function setSQLLogger(SQLLogger $logger = null)
{ {
$this->_attributes['sqlLogger'] = $logger; $this->_attributes['sqlLogger'] = $logger;
} }
......
...@@ -948,6 +948,7 @@ abstract class AbstractPlatform ...@@ -948,6 +948,7 @@ abstract class AbstractPlatform
if(strtolower($columnData['type']) == "string" && $columnData['length'] === null) { if(strtolower($columnData['type']) == "string" && $columnData['length'] === null) {
$columnData['length'] = 255; $columnData['length'] = 255;
} }
$columnData['unsigned'] = $column->getUnsigned();
$columnData['precision'] = $column->getPrecision(); $columnData['precision'] = $column->getPrecision();
$columnData['scale'] = $column->getScale(); $columnData['scale'] = $column->getScale();
$columnData['default'] = $column->getDefault(); $columnData['default'] = $column->getDefault();
......
...@@ -629,12 +629,12 @@ class MsSqlPlatform extends AbstractPlatform ...@@ -629,12 +629,12 @@ class MsSqlPlatform extends AbstractPlatform
if (is_array($item)) { if (is_array($item)) {
foreach ($item as $key => $value) { foreach ($item as $key => $value) {
if (is_bool($value) || is_numeric($item)) { if (is_bool($value) || is_numeric($item)) {
$item[$key] = ($value) ? 'TRUE' : 'FALSE'; $item[$key] = ($value) ? 1 : 0;
} }
} }
} else { } else {
if (is_bool($item) || is_numeric($item)) { if (is_bool($item) || is_numeric($item)) {
$item = ($item) ? 'TRUE' : 'FALSE'; $item = ($item) ? 1 : 0;
} }
} }
return $item; return $item;
......
...@@ -369,7 +369,13 @@ class MySqlPlatform extends AbstractPlatform ...@@ -369,7 +369,13 @@ class MySqlPlatform extends AbstractPlatform
* 'comment' => 'Foo', * 'comment' => 'Foo',
* 'charset' => 'utf8', * 'charset' => 'utf8',
* 'collate' => 'utf8_unicode_ci', * 'collate' => 'utf8_unicode_ci',
* 'type' => 'innodb', * 'engine' => 'innodb',
* 'foreignKeys' => array(
* new ForeignKeyConstraint(),
* new ForeignKeyConstraint(),
* new ForeignKeyConstraint(),
* // etc
* )
* ); * );
* *
* @return void * @return void
......
...@@ -686,7 +686,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -686,7 +686,7 @@ class PostgreSqlPlatform extends AbstractPlatform
*/ */
public function getTruncateTableSQL($tableName, $cascade = false) public function getTruncateTableSQL($tableName, $cascade = false)
{ {
return 'TRUNCATE '.$tableName.' '.($cascade)?'CASCADE':''; return 'TRUNCATE '.$tableName.' '.(($cascade)?'CASCADE':'');
} }
public function getReadLockSQL() public function getReadLockSQL()
......
...@@ -36,7 +36,7 @@ class Version ...@@ -36,7 +36,7 @@ class Version
/** /**
* Current Doctrine Version * Current Doctrine Version
*/ */
const VERSION = '2.1.0-DEV'; const VERSION = '2.1.0BETA2-DEV';
/** /**
* Compares a Doctrine version with the current one. * Compares a Doctrine version with the current one.
......
Subproject commit a46c6180f96647fdd66e2c8f2771d61ecebe6a3f Subproject commit 3103408ac394e8f9948431c0302a09faf352764e
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment