Hey,
I'd like to code a furniture shop in my cms, but phoenix uses the method lastinsertedid. so it will duplicate items.
If i auto number the id field, will it mess everything up or should it work fine?
Printable View
Hey,
I'd like to code a furniture shop in my cms, but phoenix uses the method lastinsertedid. so it will duplicate items.
If i auto number the id field, will it mess everything up or should it work fine?
It should work Fine, Unless you screw something up when you try to auto number it.
I'm not too sure, just in case search for a thread somewhere on google that might help you if you want to auto-number.
If i am right, the database would change the id of the inserted sql in phoenix. So theoretically it would work.