I'm trying to retrieve the id
value from vtiger_crmentity_seq
in order to update vtiger_crmentity.crmid
becase it isn't auto_increment
So this is my entity vtiger_crmentity
/**
* @var integer
*
* @ORM\Column(name="crmid", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="vtiger_crmentity_seq", allocationSize=1, initialValue=1)
*/
private $crmid;
/**
* Get crmid
*
* @return integer
*/
public function getCrmid()
{
return $this->crmid;
}
But when I try to submit my form, Symfony2 returns me this error.
Operation 'Doctrine\DBAL\Platforms\AbstractPlatform::getSequenceNextValSQL' is not supported by platform. 500 Internal Server Error - DBALException
I cannot change vtiger_crmentity.crmid
to auto_increment
so this idea is discarted, also I need to update vtiger_crmentity_seq.id
to the latest value used obviously...