I expect you are approaching a problem from the wrong angle and there
may be a better solution which could be offered if you tell us what it
is you are trying to achieve.  Can you explain why you would want to
do this?  What would you do with the result set after altering the top
level key values?

The way cake returns result sets is completely standard and I can see
little use for altering the top level key values to match the table's
id.  When you run a query on a table it returns X number of records
depending upon your query parameters and you then iterate through the
result set to display the results, as such those key values are
irrelevant as you deal with each row in the order they are returned
from your query.

Also, changing your table would not effect the way in which cake
constructs the resulting array.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to