Commit 3b086813 authored by Davi Koscianski Vidal's avatar Davi Koscianski Vidal Committed by lucasvanlierop

'Unbreaking' public API

parent 2e989780
...@@ -2568,7 +2568,7 @@ abstract class AbstractPlatform ...@@ -2568,7 +2568,7 @@ abstract class AbstractPlatform
* @param mixed $item * @param mixed $item
* @return mixed * @return mixed
*/ */
public function convertBoolToSqlLiteral($item) public function convertBooleans($item)
{ {
if (is_array($item)) { if (is_array($item)) {
foreach ($item as $k => $value) { foreach ($item as $k => $value) {
...@@ -2606,7 +2606,7 @@ abstract class AbstractPlatform ...@@ -2606,7 +2606,7 @@ abstract class AbstractPlatform
*/ */
public function convertBoolToDbValue($item) public function convertBoolToDbValue($item)
{ {
return self::convertBoolToSqlLiteral($item); return self::convertBooleans($item);
} }
/** /**
......
...@@ -690,10 +690,10 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -690,10 +690,10 @@ class PostgreSqlPlatform extends AbstractPlatform
* *
* Postgres wants boolean values converted to the strings 'true'/'false'. * Postgres wants boolean values converted to the strings 'true'/'false'.
*/ */
public function convertBoolToSqlLiteral($item) public function convertBooleans($item)
{ {
if ( ! $this->useBooleanTrueFalseStrings) { if ( ! $this->useBooleanTrueFalseStrings) {
return parent::convertBoolToSqlLiteral($item); return parent::convertBooleans($item);
} }
if (is_array($item)) { if (is_array($item)) {
......
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