Hi folks,

I'm facing following problem with cakephp model function

       print_r($this->Post->findAll());

##Above function prints all records before below insert



        $this->Post->query("INSERT INTO `cake_blog_tutorial`.`posts`
(`id` ,`title` ,`body` ,`created` ,`modified`)VALUES (NULL , 'hey',
'kishor', '', '')");

         print_r($this->Post->findAll());

##Above function prints all records  but not print latest inserted
record

         print_r($this->Post->findByTitle('hey'));

##Above function prints all records  including latest record


why 2nd findAll() not display latest record .
Is  cakephp takes cache of queries or is this type setting in
cakephp.

Please guide me.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to