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

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

Eyes of the hawk!!!

Yes, that is the exact error and I missed it totally. I will  
investigate tomorrow as its bedtime here.

Thanks as always!

Jonathan

On 2 Jul 2009, at 17:24, Jonathan Wage wrote:

> Is that the exact error? The eror says "setHollowareitem", but it is  
> named "HollowareItem", with a capital "I". Is your code calling the  
> wrong method somewhere in your code or something?

> - Jon

> On Thu, Jul 2, 2009 at 9:46 AM, Jonathan Franks  
> <jonat...@ifranks.com> wrote:

> 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

> --
> Jonathan H. Wage (+1 415 992 5468)
> Open Source Software Developer & Evangelist
> sensiolabs.com | jwage.com | doctrine-project.org | symfony-
> project.org

> You can contact Jonathan about Doctrine, Symfony and Open-Source or  
> for training, consulting, application development, or business  
> related questions at jonathan.w...@sensio.com