look in the book in the model attributes section

http://book.cakephp.org/view/66/models#model-attributes

On Feb 13, 2008 2:10 AM, Kishor <[EMAIL PROTECTED]> wrote:
>
> 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.
> >
>



-- 
-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
http://blog.samdevore.com/cakephp-pages/i-cant-bake/

--~--~---------~--~----~------------~-------~--~----~
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