<commit_before><?php
/**
 * PaymentTypeVariable
 * 
 * @property integer $paymentTypeId
 * @property string $name
 * @property string $value
 * @property PaymentType $PaymentType
 * 
 * @package    jazzee
 * @subpackage orm
 */
class PaymentTypeVariable extends Doctrine_Record{
  /**
   * @see Doctrine_Record_Abstract::setTableDefinition()
   */
  public function setTableDefinition(){
    $this->setTableName('payment_type_variable');
    $this->hasColumn('paymentTypeId', 'integer', null, array(
      'type' => 'integer',
     ));
    $this->hasColumn('name', 'string', 255, array(
      'type' => 'string',
      'length' => '255',
     ));
    $this->hasColumn('value', 'string', 3000, array(
      'type' => 'string',
      'length' => '3000',
     ));


    $this->index('payemntType_variable', array(
      'fields' => array(
        0 => 'paymentTypeId',
        1 => 'name',
      ),
      'type' => 'unique',
     ));
  }

  /**
   * @see Doctrine_Record::setUp()
   */
  public function setUp(){
    parent::setUp();
    $this->hasOne('PaymentType', array(
      'local' => 'paymentTypeID',
      'foreign' => 'id')
    );
  }
}<commit_msg>Cascade PaymentType updates and deletes in PaymentTypeVariable.<commit_after><?php
/**
 * PaymentTypeVariable
 * 
 * @property integer $paymentTypeId
 * @property string $name
 * @property string $value
 * @property PaymentType $PaymentType
 * 
 * @package    jazzee
 * @subpackage orm
 */
class PaymentTypeVariable extends Doctrine_Record{
  /**
   * @see Doctrine_Record_Abstract::setTableDefinition()
   */
  public function setTableDefinition(){
    $this->setTableName('payment_type_variable');
    $this->hasColumn('paymentTypeId', 'integer', null, array(
      'type' => 'integer',
     ));
    $this->hasColumn('name', 'string', 255, array(
      'type' => 'string',
      'length' => '255',
     ));
    $this->hasColumn('value', 'string', 3000, array(
      'type' => 'string',
      'length' => '3000',
     ));


    $this->index('payemntType_variable', array(
      'fields' => array(
        0 => 'paymentTypeId',
        1 => 'name',
      ),
      'type' => 'unique',
     ));
  }

  /**
   * @see Doctrine_Record::setUp()
   */
  public function setUp(){
    parent::setUp();
    $this->hasOne('PaymentType', array(
      'local' => 'paymentTypeID',
      'foreign' => 'id',
      'onDelete' => 'CASCADE',
      'onUpdate' => 'CASCADE')
    );
  }
}
{'fraction_non_alphanumeric': 0.18223140495867768, 'fraction_numerical': 0.013223140495867768, 'mean_word_length': 2.995049504950495, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4430114', 'n_tokens_mistral': 804, 'n_tokens_neox': 764, 'n_words': 154}