Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bshaffer/911163 to your computer and use it in GitHub Desktop.
Save bshaffer/911163 to your computer and use it in GitHub Desktop.
from BaseSf_guard_user_oldGeneratorConfiguration...
<?php
/**
* sf_guard_user_old module configuration.
*
* @package ##PROJECT_NAME##
* @subpackage sf_guard_user_old
* @author ##AUTHOR_NAME##
* @version SVN: $Id: configuration.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $
*/
abstract class BaseSf_guard_user_oldGeneratorConfiguration extends sfModelGeneratorConfiguration
{
// ...
public function getFieldsDefault()
{
return array(
'id' => array( 'is_link' => true, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',),
'first_name' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',),
'last_name' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',),
'email_address' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',),
'username' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',),
'algorithm' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',),
'salt' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',),
'password' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',),
'is_active' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Boolean',),
'is_super_admin' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Boolean',),
'last_login' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Date',),
'created_at' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Date',),
'updated_at' => array( 'is_link' => false, 'is_real' => true, 'is_partial' => false, 'is_component' => false, 'type' => 'Date',),
'groups_list' => array( 'is_link' => false, 'is_real' => false, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',),
'permissions_list' => array( 'is_link' => false, 'is_real' => false, 'is_partial' => false, 'is_component' => false, 'type' => 'Text',),
);
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment