Re: Unbind Reverse Relations in Recursive Queries

2008-03-03 Thread sabkaraja
cool. its working :) Does it support conditions from related models? eg: I want to load the chapters for a specific user only? $subjects = $this-Subject-find('all', array('conditions'='Subject.enabled=1', 'restrict'=array(

RE: Unbind Reverse Relations in Recursive Queries

2008-03-02 Thread websta*
If your using 1.2 definitely check out the wicked little behavior that is bindable: http://bakery.cakephp.org/articles/view/bindable-behavior-control-your-model -bindings -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sabkaraja Sent: Monday,

Re: Unbind Reverse Relations in Recursive Queries

2008-03-02 Thread Matias Lespiau
On Mon, Mar 3, 2008 at 5:38 AM, sabkaraja [EMAIL PROTECTED] wrote: Hi Hi, I have 3 models: Subject, Topic Chapter Subject hasMany Topics Topic belongsTo Subject Topic hasMany Chapters Chapter belongsTo Topic User HABTM Chapter I am trying to do a recursive query