setTableName('debt'); $this->hasColumn('id', 'integer', null, array( 'type' => 'integer', 'primary' => true, 'autoincrement' => true, )); $this->hasColumn('attachment_id', 'integer', null, array( 'type' => 'integer', 'notnull' => true, )); $this->hasColumn('update_date', 'date', null, array( 'type' => 'date', )); $this->hasColumn('penalty', 'decimal', 10, array( 'type' => 'decimal', 'scale' => '2', 'length' => '10', )); $this->hasColumn('balance', 'decimal', 10, array( 'type' => 'decimal', 'scale' => '2', 'length' => '10', )); $this->hasColumn('payment', 'decimal', 10, array( 'type' => 'decimal', 'scale' => '2', 'length' => '10', )); $this->hasColumn('insurance', 'decimal', 10, array( 'type' => 'decimal', 'scale' => '2', 'length' => '10', )); $this->hasColumn('fee', 'decimal', 10, array( 'type' => 'decimal', 'scale' => '2', 'length' => '10', )); $this->hasColumn('payed', 'decimal', 10, array( 'type' => 'decimal', 'scale' => '2', 'length' => '10', )); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { $this->hasOne('Attachment', array( 'local' => 'attachment_id', 'foreign' => 'id')); $timestampable0 = new Doctrine_Template_Timestampable(); $auditable0 = new Doctrine_Template_Auditable(array( 'user_id' => array( 'expression' => array( 'symfony_context' => 'getUser()->getGuardUser()->id', ), ), )); $this->actAs($timestampable0); $this->actAs($auditable0); } }