Commit 1c562fca authored by František Bereň's avatar František Bereň Committed by lucasvanlierop

Update AbstractPlatform.php

Default Boolean conversion behaviour
parent eeda97b6
...@@ -2581,6 +2581,20 @@ abstract class AbstractPlatform ...@@ -2581,6 +2581,20 @@ abstract class AbstractPlatform
return $item; return $item;
} }
/**
* Some platforms have boolean literals that needs to be correctly
*
* The default conversion tries to convert value into bool "(bool)$item"
*
* @param mixed $item
*
* @return bool
*/
public function convertFromBoolean($item)
{
return (null === $item) ? null : (bool) $item;
}
/** /**
* Returns the SQL specific for the platform to get the current date. * Returns the SQL specific for the platform to get the current date.
* *
......
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