Commit ac28bbca authored by Davi Koscianski Vidal's avatar Davi Koscianski Vidal Committed by lucasvanlierop

Forgot to update references

parent 702967b6
......@@ -714,10 +714,10 @@ class PostgreSqlPlatform extends AbstractPlatform
/**
* {@inheritDoc}
*/
public function convertBoolToDbValue($item)
public function convertBooleansToDbValue($item)
{
if ( ! $this->useBooleanTrueFalseStrings) {
return parent::convertBoolToDbValue($item);
return parent::convertBooleansToDbValue($item);
}
if (is_array($item)) {
......
......@@ -41,7 +41,7 @@ class BooleanType extends Type
*/
public function convertToDatabaseValue($value, AbstractPlatform $platform)
{
return $platform->convertBoolToDbValue($value);
return $platform->convertBooleansToDbValue($value);
}
/**
......
......@@ -67,7 +67,7 @@ class DBAL630Test extends \Doctrine\Tests\DbalFunctionalTestCase
$platform = $this->_conn->getDatabasePlatform();
$stmt = $this->_conn->prepare('INSERT INTO dbal630 (bool_col) VALUES(?)');
$stmt->bindValue(1, $platform->convertBoolToDbValue('false'), PDO::PARAM_BOOL);
$stmt->bindValue(1, $platform->convertBooleansToDbValue('false'), PDO::PARAM_BOOL);
$stmt->execute();
$id = $this->_conn->lastInsertId('dbal630_id_seq');
......
......@@ -318,8 +318,8 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa
{
$platform = $this->createPlatform();
$this->assertEquals(1, $platform->convertBoolToDbValue(true));
$this->assertEquals(0, $platform->convertBoolToDbValue(false));
$this->assertEquals(1, $platform->convertBooleansToDbValue(true));
$this->assertEquals(0, $platform->convertBooleansToDbValue(false));
}
/**
......@@ -330,8 +330,8 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa
$platform = $this->createPlatform();
$platform->setUseBooleanTrueFalseStrings(false);
$this->assertEquals(1, $platform->convertBoolToDbValue(true));
$this->assertEquals(0, $platform->convertBoolToDbValue(false));
$this->assertEquals(1, $platform->convertBooleansToDbValue(true));
$this->assertEquals(0, $platform->convertBooleansToDbValue(false));
}
public function testConvertFromBoolean()
......
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