Re: Having a couple of problems using recursive = 1

2009-10-17 Thread j0n4s.h4rtm...@googlemail.com
In addition set recursive to -1. Automagical fechting of related models is well, something for scaffold and testing, nothing for production applications imho. Its slow. See Containable (or contains) as mentioned above, Linkable (on GitHUB) or Complex Find Conditions (with "joins") to fetch deep ass

Re: Having a couple of problems using recursive = 1

2009-10-16 Thread KyleKai
Maybe you just need http://book.cakephp.org/view/474/Containable On 10月17日, 上午11時08分, "gimperdan...@gmail.com" wrote: > Ok this is what I have set up: > > Artist -> hasMany Album > Album -> belongsTo Artist > Album -> belongsTo Label > Album-> hasMany Track > Label-> hasMany Album > Track->

Having a couple of problems using recursive = 1

2009-10-16 Thread gimperdan...@gmail.com
Ok this is what I have set up: Artist -> hasMany Album Album -> belongsTo Artist Album -> belongsTo Label Album-> hasMany Track Label-> hasMany Album Track-> belongsTo Album so fa so good I provide the name of the Artist and the name of the Album and want to get results from each table: $t