> I'm not certain, but
> you might be able to specify something like:
>
> array('ballots.*', 'options.*')
That doesn't work. I think that's for returing one field from the model
that the controller is associated with. I want something very similar
by to get a particular from a associated Model, not a particular field.
> 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.
The result is not the same. "findById" is will find a Option with that
ID,
where Option.id = $someBallotID (which is comparing the worng
IDs)
my query was lo
where Option.ballot_id = $someBallotID
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---