schmittjoh / JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
http://jmsyst.com/bundles/JMSJobQueueBundle
335 stars 254 forks source link

Problems with doctrine type "jms_job_safe_object" when Oracle uses #125

Open imilyukov opened 8 years ago

imilyukov commented 8 years ago

I see raise error, when call save a jab. Just replace same code in https://github.com/schmittjoh/JMSJobQueueBundle/blob/master/Entity/Type/SafeObjectType.php#L11

use Doctrine\DBAL\Platforms; .....

public function getSQLDeclaration(array $fieldDeclaration, Platforms\AbstractPlatform $platform)
{
    return $platform instanceof Platforms\OraclePlatform
        ? $platform->getClobTypeDeclarationSQL($fieldDeclaration)
        : $platform->getBlobTypeDeclarationSQL($fieldDeclaration);
}

Thanks :)