When a form is submitted, I save the data  like this:
        $this->User->save($this->data);

And them immediately try to get the object I just saved by querying it
with one of the values in the object, which I then save to my session:

                  $this->Session->write('User', 
$this->User->findByUsername($this-
>data['User']['username']));

But I always get a null value.  I check my DB and the data is stored
correctly and the next time I query it I get the object back.    Their
seems to be a delay from the time I save the data to the time I am
able to successfully query the data.


Is this how it should be working or am I doing something wrong?

Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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