开发者

Simulating an enum type in Propel: error trying to generate form classes

documento: {type: varchar, sqltype: enum, size:
"'F','DDT','RC','FOURTH_ELEMENT','PM','KV','VN','CMS'", required:
true, defaultValue: 'F', required: true}

I get the next error message (always with the fourth element, I mean if i write 3 or less elements it doesn't give any error):

propel generating form classes

Cannot fetch TableMap for undefined table: FOURTH_ELEMENT

[?php

/** * sfGuardUserProfile form base class. * * @method sfGuardUserProfile getObject() Returns 开发者_运维技巧the current form's model object * * @package ##PROJECT_NAME## * @subpackage form * @author

AUTHOR_NAME * @version SVN: $Id: sfPropelFormGeneratedTemplate.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $ */ abstract class BasesfGuardUserProfileForm extends BaseFormPropel { public function setup() { $this->setWidgets(array(

sf 1.4.

Javier


You should upgrade to Propel 1.6.3 in order to get the advanced columns feature (ENUM for instance): http://www.propelorm.org/cookbook/working-with-advanced-column-types.html#enum_columns.

William

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜