/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardUser.class.php
https://github.com/arturolinares/asandbox · PHP · 199 lines · 103 code · 18 blank · 78 comment · 0 complexity · 0c3929491888718aa9dd10545c38c934 MD5 · raw file
- <?php
- /**
- * BasesfGuardUser
- *
- * This class has been auto-generated by the Doctrine ORM Framework
- *
- * @property integer $id
- * @property string $username
- * @property string $algorithm
- * @property string $salt
- * @property string $password
- * @property boolean $is_active
- * @property boolean $is_super_admin
- * @property timestamp $last_login
- * @property Doctrine_Collection $groups
- * @property Doctrine_Collection $permissions
- * @property Doctrine_Collection $aPage
- * @property Doctrine_Collection $aAreaVersion
- * @property Doctrine_Collection $Accesses
- * @property Doctrine_Collection $MediaItems
- * @property Doctrine_Collection $BlogAuthorItems
- * @property Doctrine_Collection $BlogEditorItems
- * @property Doctrine_Collection $BlogItemEditors
- * @property Doctrine_Collection $BlogCategories
- * @property Doctrine_Collection $BlogCategoryUsers
- * @property Doctrine_Collection $sfGuardUserPermission
- * @property Doctrine_Collection $sfGuardUserGroup
- * @property sfGuardRememberKey $RememberKeys
- *
- * @method integer getId() Returns the current record's "id" value
- * @method string getUsername() Returns the current record's "username" value
- * @method string getAlgorithm() Returns the current record's "algorithm" value
- * @method string getSalt() Returns the current record's "salt" value
- * @method string getPassword() Returns the current record's "password" value
- * @method boolean getIsActive() Returns the current record's "is_active" value
- * @method boolean getIsSuperAdmin() Returns the current record's "is_super_admin" value
- * @method timestamp getLastLogin() Returns the current record's "last_login" value
- * @method Doctrine_Collection getGroups() Returns the current record's "groups" collection
- * @method Doctrine_Collection getPermissions() Returns the current record's "permissions" collection
- * @method Doctrine_Collection getAPage() Returns the current record's "aPage" collection
- * @method Doctrine_Collection getAAreaVersion() Returns the current record's "aAreaVersion" collection
- * @method Doctrine_Collection getAccesses() Returns the current record's "Accesses" collection
- * @method Doctrine_Collection getMediaItems() Returns the current record's "MediaItems" collection
- * @method Doctrine_Collection getBlogAuthorItems() Returns the current record's "BlogAuthorItems" collection
- * @method Doctrine_Collection getBlogEditorItems() Returns the current record's "BlogEditorItems" collection
- * @method Doctrine_Collection getBlogItemEditors() Returns the current record's "BlogItemEditors" collection
- * @method Doctrine_Collection getBlogCategories() Returns the current record's "BlogCategories" collection
- * @method Doctrine_Collection getBlogCategoryUsers() Returns the current record's "BlogCategoryUsers" collection
- * @method Doctrine_Collection getSfGuardUserPermission() Returns the current record's "sfGuardUserPermission" collection
- * @method Doctrine_Collection getSfGuardUserGroup() Returns the current record's "sfGuardUserGroup" collection
- * @method sfGuardRememberKey getRememberKeys() Returns the current record's "RememberKeys" value
- * @method sfGuardUser setId() Sets the current record's "id" value
- * @method sfGuardUser setUsername() Sets the current record's "username" value
- * @method sfGuardUser setAlgorithm() Sets the current record's "algorithm" value
- * @method sfGuardUser setSalt() Sets the current record's "salt" value
- * @method sfGuardUser setPassword() Sets the current record's "password" value
- * @method sfGuardUser setIsActive() Sets the current record's "is_active" value
- * @method sfGuardUser setIsSuperAdmin() Sets the current record's "is_super_admin" value
- * @method sfGuardUser setLastLogin() Sets the current record's "last_login" value
- * @method sfGuardUser setGroups() Sets the current record's "groups" collection
- * @method sfGuardUser setPermissions() Sets the current record's "permissions" collection
- * @method sfGuardUser setAPage() Sets the current record's "aPage" collection
- * @method sfGuardUser setAAreaVersion() Sets the current record's "aAreaVersion" collection
- * @method sfGuardUser setAccesses() Sets the current record's "Accesses" collection
- * @method sfGuardUser setMediaItems() Sets the current record's "MediaItems" collection
- * @method sfGuardUser setBlogAuthorItems() Sets the current record's "BlogAuthorItems" collection
- * @method sfGuardUser setBlogEditorItems() Sets the current record's "BlogEditorItems" collection
- * @method sfGuardUser setBlogItemEditors() Sets the current record's "BlogItemEditors" collection
- * @method sfGuardUser setBlogCategories() Sets the current record's "BlogCategories" collection
- * @method sfGuardUser setBlogCategoryUsers() Sets the current record's "BlogCategoryUsers" collection
- * @method sfGuardUser setSfGuardUserPermission() Sets the current record's "sfGuardUserPermission" collection
- * @method sfGuardUser setSfGuardUserGroup() Sets the current record's "sfGuardUserGroup" collection
- * @method sfGuardUser setRememberKeys() Sets the current record's "RememberKeys" value
- *
- * @package asandbox
- * @subpackage model
- * @author Your name here
- * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
- */
- abstract class BasesfGuardUser extends sfDoctrineRecord
- {
- public function setTableDefinition()
- {
- $this->setTableName('sf_guard_user');
- $this->hasColumn('id', 'integer', 4, array(
- 'type' => 'integer',
- 'primary' => true,
- 'autoincrement' => true,
- 'length' => 4,
- ));
- $this->hasColumn('username', 'string', 128, array(
- 'type' => 'string',
- 'notnull' => true,
- 'unique' => true,
- 'length' => 128,
- ));
- $this->hasColumn('algorithm', 'string', 128, array(
- 'type' => 'string',
- 'default' => 'sha1',
- 'notnull' => true,
- 'length' => 128,
- ));
- $this->hasColumn('salt', 'string', 128, array(
- 'type' => 'string',
- 'length' => 128,
- ));
- $this->hasColumn('password', 'string', 128, array(
- 'type' => 'string',
- 'length' => 128,
- ));
- $this->hasColumn('is_active', 'boolean', null, array(
- 'type' => 'boolean',
- 'default' => 1,
- ));
- $this->hasColumn('is_super_admin', 'boolean', null, array(
- 'type' => 'boolean',
- 'default' => false,
- ));
- $this->hasColumn('last_login', 'timestamp', null, array(
- 'type' => 'timestamp',
- ));
- $this->index('is_active_idx', array(
- 'fields' =>
- array(
- 0 => 'is_active',
- ),
- ));
- }
- public function setUp()
- {
- parent::setUp();
- $this->hasMany('sfGuardGroup as groups', array(
- 'refClass' => 'sfGuardUserGroup',
- 'local' => 'user_id',
- 'foreign' => 'group_id'));
- $this->hasMany('sfGuardPermission as permissions', array(
- 'refClass' => 'sfGuardUserPermission',
- 'local' => 'user_id',
- 'foreign' => 'permission_id'));
- $this->hasMany('aPage', array(
- 'local' => 'id',
- 'foreign' => 'author_id'));
- $this->hasMany('aAreaVersion', array(
- 'local' => 'id',
- 'foreign' => 'author_id'));
- $this->hasMany('aAccess as Accesses', array(
- 'local' => 'id',
- 'foreign' => 'user_id'));
- $this->hasMany('aMediaItem as MediaItems', array(
- 'local' => 'id',
- 'foreign' => 'owner_id'));
- $this->hasMany('aBlogItem as BlogAuthorItems', array(
- 'local' => 'id',
- 'foreign' => 'author_id'));
- $this->hasMany('aBlogItem as BlogEditorItems', array(
- 'refClass' => 'aBlogEditor',
- 'local' => 'user_id',
- 'foreign' => 'blog_item_id'));
- $this->hasMany('aBlogEditor as BlogItemEditors', array(
- 'local' => 'id',
- 'foreign' => 'user_id'));
- $this->hasMany('aBlogCategory as BlogCategories', array(
- 'refClass' => 'aBlogCategoryUser',
- 'local' => 'user_id',
- 'foreign' => 'blog_category_id'));
- $this->hasMany('aBlogCategoryUser as BlogCategoryUsers', array(
- 'local' => 'id',
- 'foreign' => 'user_id'));
- $this->hasMany('sfGuardUserPermission', array(
- 'local' => 'id',
- 'foreign' => 'user_id'));
- $this->hasMany('sfGuardUserGroup', array(
- 'local' => 'id',
- 'foreign' => 'user_id'));
- $this->hasOne('sfGuardRememberKey as RememberKeys', array(
- 'local' => 'id',
- 'foreign' => 'user_id'));
- $timestampable0 = new Doctrine_Template_Timestampable();
- $this->actAs($timestampable0);
- }
- }