Regarding your section question, and pulling only certain
information...

Check out:
http://api.cakephp.org/class_model.html#c2d8fb14f5398c85452d978bd013436f,
which is the API page for FindAll().  One of the parameters is
'fields', where you can specify fields returned.  I'm not certain, but
you might be able to specify something like:

array('ballots.*', 'options.*')

Again, I'm not sure on that, but it might help.

Also in your first question, you wrote:
$this->Ballot->Options->findAll("ballot_id=$someID"); .

You could also write that as $this->Ballot->Options->findById($someID).
 The result would be the same, but it looks a little better IMO.


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

Reply via email to