In my app i have an index of Proposals. I this view i need to show if
a proposal has been rated yet by the user. What i am doing is grabbing
all the proposals with a find('all'), then looping through and calling
a method in the Rating model to check for ratings for that proposal by
the current User. If the method returns true, then a new field Proposal
['rated'] is added to the Proposals array which in turn is checked in
the view whether to display a check mark or something for that
Proposal. Actually, the field is added either way, but with a true or
false, depending.

Set up (in case it's not clear):
Proposal hasMany Rating
Rating belongsTo Proposal
Rating belongsTo User

(there is a Criteria field on the ratings table, too, so that's why i
didn't do a HABTM, but the criteria aren't important in this example.)

When i try to use the paginator helper, i lose that 'rated' field. Is
there a way to use pagination and keep records in the array which have
been added?
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to