So I created an sql script with a lot of data in it that I ran in a postgresql Database. I use the Doctrine2 ORM inside the application to handle the database.
The problem I would like to fix is as follow :
if my insertion line is like this:
INSERT INTO interneo.services VALUES
(1, 'test', 'test', 'root', 'foo', false, now(), now());
If I now want to add a new service from the application (that will insert the line using Doctrine), It will send me an error saying the id 1 is allready taken. If I reload the page it will work. I guess Doctrine has some sort of counter that starts at 1 for every model.
Is there a way to make that "counter" start with the id of the last inserted line? Or maybe a way inside my script that doctrine will take into account? (like DEFAULT instead of 1 or something, but postgresql doesn't seem to have something like that, or I didn't search right).
Anyway, thanks for your help. I very much appreciate it.