Hi everyone, New to the group but glad to be here. I've been using cake for about a year and half now and love it. My problem is this, I have a Model with an HABTM assoc Questions HABTM Versions, but everytime I go to save I am getting this error...
Warning (2): Invalid argument supplied for foreach() [CORE/cake/libs/ model/model.php, line 1284] I did the fix related to https://trac.cakephp.org/changeset/6317 but it's still spitting out the same error. I am at a complete loss... <?php class Question extends AppModel { var $name = 'Question'; var $useTable = 'questions'; //The Associations below have been created with all possible keys, those that are not needed can be removed var $hasAndBelongsToMany = array( 'Version' => array('className' => 'Version', 'joinTable' => 'questions_versions', 'foreignKey' => 'question_id', 'associationForeignKey' => 'version_id', 'unique' => true ) ); var $hasMany = array( 'Answer' => array('className' => 'Answer', 'foreignKey' => 'question_id', 'dependent' => false, 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'exclusive' => '', 'finderQuery' => '', 'counterQuery' => '' ) ); } ?> Any help would be greatly appreciated. Mat --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
