i've noticed that when i try to run propel:build-forms, the base form
classes it generates does not seem to have all of the widgets and
validators generated.

part of my schema.yml file looks like this:

  account:
    _attributes: { idMethod: native }
    account_id: { type: INTEGER, required: true, autoIncrement: true,
primaryKey: true }
    account_type_id: { type: INTEGER, required: true, default: '',
foreignTable: account_type, foreignReference: account_type_id,
onDelete: CASCADE, onUpdate: CASCADE }
    created_at: { type: TIMESTAMP }
    _indexes: { ACCOUNT_ACCOUNT_TYPE_ID: [account_type_id] }

  account_information:
    _attributes: { idMethod: native }
    account_information_id: { type: INTEGER, required: true,
autoIncrement: true, primaryKey: true }
    account_id: { type: INTEGER, required: true, primaryKey: true,
default: '', foreignTable: account, foreignReference: account_id,
onDelete: RESTRICT, onUpdate: RESTRICT }
    first_name: { type: VARCHAR, size: '100', required: true, default:
'' }
    last_name: { type: VARCHAR, size: '100', required: true, default:
'' }
    telephone: { type: VARCHAR, size: '100', required: true, default:
'' }
    email_address: { type: VARCHAR, size: '100', required: true,
default: '' }

but my BaseAccountInformationForm only has the following:
    $this->setWidgets(array(
      'account_information_id' => new sfWidgetFormInputHidden(),
    ));

    $this->setValidators(array(
      'account_information_id' => new
sfValidatorPropelChoice(array('model' => 'AccountInformation',
'column' => 'account_information_id', 'required' => false)),
    ));

i would expect first_name, last_name, telephone, and email_address to
be included as well - but i don't see it there. does anybody have any
suggestions?


thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to