This may have been answered already but the search is for some reason
not working well for me.

My HABTM looks like this:
var $hasAndBelongsToMany = array('parameters' =>
                array('className'           => 'Wac',
                        'joinTable'             => 'wacs_params',
                        'foreignKey'            => 'wacs_id',
                        'associationForeignKey' => 'params_id',
                        'conditions'            => 'parameters.is_param=1',
                        'order'                 => 'sort_order ASC',
                        'unique'                => true
                )
        );

My question is, when I use scaffolding, my SQL in the *add* view to
fetch the possible children for the item I am adding looks like this:
SELECT `Wac`.`id` FROM `wacs` AS `Wac` WHERE 1 = 1

The thing I am missing is: "parameters.is_param=1", i.e. what happened
to the "conditions"?

I know, I know, "parameters.is_param=1" wont work with the above SQL
but it should still be there?!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to