The last insert id should be set straight after the call to save. What
is the SQL output from the call to save? Is the data getting saved
correctly?
Try assigning it first before using it in the find query like so
(shouldn't matter):
$last_id = $this->Comment->getLastInsertId();
$this->set('comment', $this->Comment->findAll('id ='.$last_id);
Regards,
Winston
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---