> Should it bring in all hardcoded (model) associations when I import them?
>
> Here is what I have and I can't pull any fields from Sequences or
> PackagesSequence objects/tables
>
> var $uses = array('Package','Sequence','PackagesSequence');
> $extra = array(
> 'recursive' => 1, //int
> 'fields' => array('Package.name', 'Sequence.name'), //array
> of field names
> );
>
> $this->Package->find('all', $extra);
>
> I get an error that it doesn't know the Sequence table. Thoughts? Do I
> have to recode the associations already in the models?
you need to $this->Package->bindMode(...)
--
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment