Commit ec3d5b82 authored by François Agneray's avatar François Agneray
Browse files

#43 => done

parent d918cec6
Pipeline #2166 passed with stages
in 3 minutes and 7 seconds
......@@ -26,13 +26,6 @@ use Doctrine\DBAL\Query\Expression\ExpressionBuilder;
*/
class OperatorFactory implements IOperatorFactory
{
private $databasePlatform;
public function setDatabasePlatform(AbstractPlatform $databasePlatform)
{
$this->databasePlatform = $databasePlatform;
}
/**
* Make the right operator and send it back
* Parameters represent values ​​sent by the user
......@@ -133,9 +126,6 @@ class OperatorFactory implements IOperatorFactory
return new OperatorNotNull($expr, $column, $columnType);
case 'js':
if (!($this->databasePlatform instanceof PostgreSQL94Platform)) {
throw OperatorException::operatorJsonNotSupported();
}
if ($columnType !== 'json') {
throw OperatorException::operatorJsonNeedColumnTypeJson();
}
......
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