Development

Changeset 24483

You must first sign up to be able to contribute.

Changeset 24483

Show
Ignore:
Timestamp:
11/27/09 23:06:47 (3 years ago)
Author:
Stephen.Ostrow
Message:

Fixing the onDeletes for relations. This will fix using Doctrine:loadData with append as false.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfDoctrineUserPlugin/branches/1.3/config/doctrine/1001_user_phone.yml

    r15380 r24483  
    2222      class: sfUserPhoneType 
    2323      local: phone_type_id 
     24      onDelete: 'SET NULL' 
  • plugins/sfDoctrineUserPlugin/branches/1.3/config/doctrine/1002_user_address.yml

    r15380 r24483  
    3232      class: sfUserAddressType 
    3333      local: address_type_id 
     34      onDelete: 'SET NULL' 
    3435    State: 
    3536      class: sfUserState 
    3637      local: state_id 
     38      onDelete: 'SET NULL' 
  • plugins/sfDoctrineUserPlugin/branches/1.3/config/doctrine/1003_user_email.yml

    r15635 r24483  
    2121      class: sfUserEmailAddressType 
    2222      local: email_address_type_id 
     23      onDelete: 'SET NULL' 
  • plugins/sfDoctrineUserPlugin/branches/1.3/config/doctrine/1004_user_im.yml

    r15380 r24483  
    1919      class: sfUserImAccountType 
    2020      local: im_account_type_id 
     21      onDelete: 'SET NULL' 
  • plugins/sfDoctrineUserPlugin/branches/1.3/config/doctrine/1005_user_billing.yml

    r15704 r24483  
    8282      class: sfUserCreditCardType 
    8383      local: credit_card_type_id 
     84      onDelete: 'SET NULL' 
  • plugins/sfDoctrineUserPlugin/branches/1.3/lib/Template/Userstampable.php

    r15357 r24483  
    4343                                                    'type'    =>  'integer', 
    4444                                                    'length'    =>  '5', 
     45                                                    'onDelete'    =>  'SET NULL', 
    4546                                                    'options' =>  array()), 
    4647                                'updated' =>  array('name'    =>  'updated_by_user_id', 
    4748                                                    'type'    =>  'integer', 
    4849                                                    'length'    =>  '5', 
     50                                                    'onDelete'    =>  'SET NULL', 
    4951                                                    'options' =>  array())); 
    5052 
     
    7678    { 
    7779      $this->hasOne('sfUserUser as CreatedBy', array('local' => $this->_options['created']['name'], 
     80                                                     'onDelete' => $this->_options['created']['onDelete'], 
    7881                                                     'foreign' => 'id')); 
    7982 
    8083      $this->hasOne('sfUserUser as UpdatedBy', array('local' => $this->_options['updated']['name'], 
     84                                                     'onDelete' => $this->_options['updated']['onDelete'], 
    8185                                                     'foreign' => 'id')); 
    8286    }