Source

zf-form-builder / www / system / modules / identity / library / Base / User.php

Full commit
<?php


abstract class Identity_Base_User extends DoctrineX_Record
{
    public function setTableDefinition()
    {
        $this->setTableName('identity__user');
        $this->hasColumn('name', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => '255',
             ));
        $this->hasColumn('login', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => '255',
             ));
        $this->hasColumn('password', 'string', 32, array(
             'type' => 'string',
             'fixed' => 1,
             'notnull' => true,
             'length' => '32',
             ));
        $this->hasColumn('email', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => '255',
             ));
        $this->hasColumn('secret', 'string', 32, array(
             'type' => 'string',
             'fixed' => 1,
             'notnull' => true,
             'length' => '32',
             ));
        $this->hasColumn('role_id', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'default' => 'guest',
             'length' => '255',
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('Blog_Entry', array(
             'local' => 'id',
             'foreign' => 'user_id'));

        $timestampable0 = new Doctrine_Template_Timestampable();
        $this->actAs($timestampable0);
    }
}