jacquestvanzuydam / laravel-firebird

Firebird Illuminate package for Laravel 5
63 stars 93 forks source link

Erro driver does not support lastInsertId() #25

Closed alexrodcruz closed 8 years ago

alexrodcruz commented 8 years ago

you can help me?

PDOException in Processor.php line 34: SQLSTATE[IM001]: Driver does not support this function: driver does not support lastInsertId()

cristiano-pacheco commented 8 years ago

in your model, sets the $incrementing attribute with value false.

public $incrementing = false;

jacquestvanzuydam commented 8 years ago

Please look at this issue regarding the implementation using generators for auto-increment, as you should know that Firebird does not support auto-increment, which is unfortunately the underlying reason why the driver does not support lastinsertid()... I haven't had a chance to implement a work around yet, as I want to automate the insertion of generator tables within migrations, but haven't had stable results yet.

alexrodcruz commented 8 years ago

It worked! Thank you!!

sheengKwayla commented 5 years ago

Good day, may i know in what model did you put the public $incrementing = false; ? @alexrodcruz