Re: $this->field and contain

2014-03-24 Thread Matthew Kaufman
erCache for number of Post for that user but the Post does not >> 150 PageView records. >> >> >> >> Am I missing something? >> >> >> >> >> >> *From:* cake...@googlegroups.com [mailto:cake...@googlegroups.com] *On >> Behal

Re: $this->field and contain

2014-03-24 Thread euromark
ke...@googlegroups.com [mailto: > cake...@googlegroups.com ] *On Behalf Of *John Sposato > *Sent:* Monday, March 24, 2014 12:42 PM > *To:* cake...@googlegroups.com > *Subject:* Re: $this->field and contain > > > > Any reason you can't use counterCache? > > >

RE: $this->field and contain

2014-03-24 Thread Advantage+
Sposato Sent: Monday, March 24, 2014 12:42 PM To: cake-php@googlegroups.com Subject: Re: $this->field and contain Any reason you can't use counterCache? On Monday, March 24, 2014 11:07:46 AM UTC-4, advantage+ wrote: Can you use / is there a way to read a field and not add in extra

Re: $this->field and contain

2014-03-24 Thread John Sposato
Any reason you can't use counterCache? On Monday, March 24, 2014 11:07:46 AM UTC-4, advantage+ wrote: > > Can you use / is there a way to read a field and not add in extra relation > queries? > > > > I have a very simple function to read 1 field and update it by +1 > > > > public function pa

$this->field and contain

2014-03-24 Thread Advantage+
Can you use / is there a way to read a field and not add in extra relation queries? I have a very simple function to read 1 field and update it by +1 public function pageCount($id) { $this->id = $id; $count = $this->field('view_count', array('id' => $id)) +