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
*
* @param SQLLogger $logger
*/
public function setSQLLogger(SQLLogger $logger)
public function setSQLLogger(SQLLogger $logger = null)
{
$this->_attributes['sqlLogger'] = $logger;
}
......
......@@ -948,6 +948,7 @@ abstract class AbstractPlatform
if(strtolower($columnData['type']) == "string" && $columnData['length'] === null) {
$columnData['length'] = 255;
}
$columnData['unsigned'] = $column->getUnsigned();
$columnData['precision'] = $column->getPrecision();
$columnData['scale'] = $column->getScale();
$columnData['default'] = $column->getDefault();
......
......@@ -629,12 +629,12 @@ class MsSqlPlatform extends AbstractPlatform
if (is_array($item)) {
foreach ($item as $key => $value) {
if (is_bool($value) || is_numeric($item)) {
$item[$key] = ($value) ? 'TRUE' : 'FALSE';
$item[$key] = ($value) ? 1 : 0;
}
}
} else {
if (is_bool($item) || is_numeric($item)) {
$item = ($item) ? 'TRUE' : 'FALSE';
$item = ($item) ? 1 : 0;
}
}
return $item;
......
......@@ -369,7 +369,13 @@ class MySqlPlatform extends AbstractPlatform
* 'comment' => 'Foo',
* 'charset' => 'utf8',
* 'collate' => 'utf8_unicode_ci',
* 'type' => 'innodb',
* 'engine' => 'innodb',
* 'foreignKeys' => array(
* new ForeignKeyConstraint(),
* new ForeignKeyConstraint(),
* new ForeignKeyConstraint(),
* // etc
* )
* );
*
* @return void
......
......@@ -686,7 +686,7 @@ class PostgreSqlPlatform extends AbstractPlatform
*/
public function getTruncateTableSQL($tableName, $cascade = false)
{
return 'TRUNCATE '.$tableName.' '.($cascade)?'CASCADE':'';
return 'TRUNCATE '.$tableName.' '.(($cascade)?'CASCADE':'');
}
public function getReadLockSQL()
......
......@@ -36,7 +36,7 @@ class Version
/**
* Current Doctrine Version
*/
const VERSION = '2.1.0-DEV';
const VERSION = '2.1.0BETA2-DEV';
/**
* 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