Go to Google Groups Home    doctrine-user
loading data in yml files with joint tables...

Jonathan Franks <jonat...@ifranks.com>

I'm having some problems importing data that uses join tables.

I can dump it just fine and I get something as follows....

HollowareItem:
   HollowareItem_89:
     stocknumber: e3916
     name: 'Coffee pots'
   HollowareItem_99:
     stocknumber: e6107
     name: Candlesticks
.......etc
Type:
   Type_1:
     name: Baskets
   Type_3:
     name: 'Biscuit boxes'
.......etc
Typejoin:
   Typejoin_5364_199:
     HollowareItem: HollowareItem_5364
     Type: Type_199
   Typejoin_5373_199:
     HollowareItem: HollowareItem_5373
     Type: Type_199
........etc

but when I try to load the data I get this error....

Unknown method Makerjoin::setHollowareitem

The table and jointable related to HollowareItem are generated by  
behaviors, but I have a filter running to call the following....

Doctrine::initializeModels('HollowareItem');

So, the relationships should be working.

Any suggestions??

Thanks, jb