Commit 47e03708 authored by František Bereň's avatar František Bereň Committed by lucasvanlierop

Update PostgreSqlPlatform.php

added postgresql literals to Boolean conversion
parent 1c562fca
......@@ -710,6 +710,21 @@ class PostgreSqlPlatform extends AbstractPlatform
return $item;
}
/**
* {@inheritDoc}
*/
public function convertFromBoolean($item)
{
if(in_array($item, array('false', 'f', 'n', 'no')))
{
return false;
}
else
{
return parent::convertFromBoolean($item);
}
}
/**
* {@inheritDoc}
......
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