PHP Doctrine and IBMi

Discussion in 'Silly Questions' started by Mike Clark, Nov 8, 2018.

Tags:
  1. Mike Clark

    Mike Clark New Member

    Hey guys - I'm having an issue implementing Doctrine and IBMi using the DoctrineDbalIbmi Driver. Everything seems to be working fine with the driver - reading and writing except when I add in an ID field using IBM's Identity column (integer). Once I add this column in and set the doctrine entity metadata of GeneratedValue(strategy="AUTO"), I get a php error of SQLSTATE[IM001]: Driver does not support this function: driver does not support lastInsertId().

    I've checked the code in the driver and I can see the lastInsertId() method. Wondering if anyone else has hit this same issue and/or how you get around it?

    Thanks
    Mike
     

Share This Page