with association.
>
> >> However if want no.s of messages in perticuler project in project page i
> >> am
> >> confused.
>
> >> How can i get this. if anything can be done with association.
>
> >> Thanks
> >> Piyush :super:
> >
hanks for your help however i find error as
> unexpected T_DOUBLE_ARROW
>
> when i paste code
> "$count =
> $this->Project->Message->findCount(array('Message.project_id')=>$MyProjectId);
> "
>
> Thanks
>
> Piyush
>
> --
> View t
ything can be done with association.
>>
>> Thanks
>> Piyush :super:
>> --
>> View this message in
>> context:http://www.nabble.com/count-no-of-rows.-tp21183253p21183253.html
>> Sent from the CakePHP mailing list arch
Hai,
Thanks for your help however i find error as
unexpected T_DOUBLE_ARROW
when i paste code
"$count =
$this->Project->Message->findCount(array('Message.project_id')=>$MyProjectId);
"
Thanks
Piyush
--
View this message in context:
http:/
You can also optmize it a bit further and use countercache
http://book.cakephp.org/view/490/counterCache-Cache-your-count
Alexandru Ciobanu wrote:
> majna wrote:
>
>> tipo :(
>> $count = $this->Project->Message->findCount(array
>> ('Message.project_id'=>$MyProjectId));
>>
>>
>
> findCo
majna wrote:
> tipo :(
> $count = $this->Project->Message->findCount(array
> ('Message.project_id'=>$MyProjectId));
>
findCount() is deprecated. Use find('count') instead.
http://book.cakephp.org/view/73/Retrieving-Your-Data
--~--~-~--~~~---~--~~
You received t
t; How can i get this. if anything can be done with association.
>
> > Thanks
> > Piyush :super:
> > --
> > View this message in
> > context:http://www.nabble.com/count-no-of-rows.-tp21183253p21183253.html
> > Sent from the CakePHP mailing list archive at Nabble.co
s in perticuler project in project page i am
> confused.
>
> How can i get this. if anything can be done with association.
>
> Thanks
> Piyush :super:
> --
> View this message in
> context:http://www.nabble.com/count-no-of-rows.-t
no.s of messages in perticuler project in project page i am
confused.
How can i get this. if anything can be done with association.
Thanks
Piyush:super:
--
View this message in context:
http://www.nabble.com/count-no-of-rows.-tp21183253p21183253.html
Sent from the CakePHP mailing list