Entity Insert Issue |
Greetings to all. I’m working on optimizing my code and have opted to implement the Entity class. However, I’m dealing with a ‘genres’ table and a ‘books_genres’ table. Below is the code I’m currently using:
PHP Code: namespace Library\Entities; When updating existing records, the process works fine. However, when attempting to add a new record, although the task completes, the ID is not generated in time, leading to a failure. Is there a solution to this issue, or must I generate the ID within the model or controller? |
Messages In This Thread |
Entity Insert Issue - by CodeXpedite - 05-18-2024, 07:54 AM
RE: Entity Insert Issue - by warcooft - 05-18-2024, 01:28 PM
|