Don’t ask me why, but I changed in my related table the auto_increment field fron “ID” to “IDX”. Obviously I changed all related reference in every view, controller, search. But for some reason, in index view were are a gridview and relative buttons, they still pointing to old /right_controller/right_action/?WRONG_ID=right_real_id.
Where I must looking for to change ID to IDX in ActionColumn buttons?
I think your solution is above my chances, but the problem arises because I need to copy values from one table to another, and for this I use this code:
If I was able to copy field by field from one table to another, I could copy the primary ID of the first table into the second one. So also the ID of the second one it will be which name like I wish, and I will leave Id of second one primary and alone. I do not know if I was clear enough …
Thank you. I will try twice your solution. The first one is more quickly, and seems working (for the moment only for view action, but I must work also for delete and so on), but the second one I think it will more definitive, and clear.