symfony1.2のAdminGeneratorでid属性を書き換える場合

通常のフォーム(sfForm)で id 属性を変更する場合は、sfForm 継承クラスの setup メソッド内で、ウィジェットのコンストラクタに $attributes パラメータとして id 属性を渡します。
しかし、AdminGenerator で生成したフォームの場合、ウィジェットのコンストラクタに渡した $attributes の id 属性は無視されてしまうようです。

AdminGenerator を使用したフォームの場合は、generator.yml で次のように attributes を指定します。

    config:
      form:
        fields:
          field_name: { attributes: { id: field_id } }