Make sure you don't have 2 different associations with the same name. For example - does any other Model have a 'Lend' association or whatever that clashes? (this situation causes a WSoD)
See for more detail: http://groups.google.com/group/cake-php/browse_thread/thread/9a3c4d8d233c7925# On Jul 20, 1:54 pm, Ryan <[EMAIL PROTECTED]> wrote: > As soon as I add this, it craps everything else out that I've done - > i.e white screens everywhere. Any ideas? > > <?php > class TheObject extends AppModel { > > var $name = 'TheObject'; > var $validate = array( > 'rid_reason_id' => array('numeric'), > 'user_id' => array('numeric'), > 'object_condition_current_id' => array('numeric'), > 'object_condition_purchase_id' => array('numeric'), > 'object_type_id' => array('numeric'), > 'price_paid' => array('money'), > 'type_id_num' => array('numeric'), > 'rid' => array('boolean'), > 'share' => array('boolean') > ); > > //The Associations below have been created with all possible keys, > those that are not needed can be removed > var $belongsTo = array( > 'RidReason' => array('className' => 'RidReason', > 'foreignKey' > => 'rid_reason_id', > 'conditions' > => '', > 'fields' => > '', > 'order' => '' > ), > 'User' => array('className' => 'User', > 'foreignKey' > => 'user_id', > 'conditions' > => '', > 'fields' => > '', > 'order' => '' > ), > 'ObjectConditionCurrent' => array('className' => > 'ObjectCondition', > 'foreignKey' > => 'object_condition_current_id', > 'conditions' > => '', > 'fields' => > '', > 'order' => '' > ), > 'ObjectConditionPurchase' => array('className' => > 'ObjectCondition', > 'foreignKey' > => 'object_condition_purchase_id', > 'conditions' > => '', > 'fields' => > '', > 'order' => '' > ), > 'ObjectType' => array('className' => 'ObjectType', > 'foreignKey' > => 'object_type_id', > 'conditions' > => '', > 'fields' => > '', > 'order' => '' > ) > ); > > var $hasMany = array( > 'Lend' => array('className' => 'Lend', > 'foreignKey' > => 'the_object_id', > 'dependent' > => false, > 'conditions' > => '', > 'fields' => > '', > 'order' => '', > 'limit' => '', > 'offset' => > '', > 'exclusive' > => '', > 'finderQuery' > => '', > > 'counterQuery' => '' > ) > ); > > } > > ?> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
