attr_auto_accessor_override

Я получаю это сообщение об ошибке, когда я создаю модель:

When using the attribute ATTR_AUTO_ACCESSOR_OVERRIDE you cannot use the field name "attribute" ...

Проблема в том, что я должен использовать это имя поля, потому что это В таблице, которая создается и используется VirtueMart. Псевдоним тоже не работает.

product_attribute: { name: product_attribute as attribute,  type: clob(16777777) }

Итак, что я могу сделать? Могу ли я повернуть attr_auto_accessor_override или у меня проблемы с этим. В случае, если я могу, как я могу это сделать?

Может ли быть проблема с поворотом ATTR_AUTO_ACCESSOR_OVERRIDE OFF? И если есть один (или больше), что это будет?

Я благодарен за любой совет!


Дополнительная информация:

Определение в basejosvmproduct: @property Clob $ product_attribute

Schema.yml:

JosVmProduct:
  columns:
    product_id:                     { type: int, notnull: true, unique: true, primary: true, autoincrement: true }
    vendor_id:                      { type: int, notnull: true, default: 0 }
    product_parent_id:              { type: int, notnull: true, default: 0 }
    product_sku:                    { type: string(64), , notnull: true, default: '' }
    product_s_desc:                 { type: string(255), default: null }
    product_desc:                   { type: clob(16777777) }
    product_thumb_image:            { type: string(255), default: null }
    product_full_image:             { type: string(255), default: null }
    product_publish:                { type: string(1), default: null }
    product_weight:                 { type: decimal(10), scale: 4, default: null }
    product_weight_uom:             { type: string(32), default: 'pounds.' }
    product_length:                 { type: decimal(10), scale: 4, default: null }
    product_width:                  { type: decimal(10), scale: 4, default: null }
    product_height:                 { type: decimal(10), scale: 4, default: null }
    product_lwh_uom:                { type: string(32), default: 'inches' }
    product_url:                    { type: string(255), default: null }
    product_in_stock:               { type: int, default: null }
    product_available_date:         { type: int, default: null }
    product_availability:           { type: string(56), notnull: true, default: '' }
    product_special:                { type: string(1), default: null }
    product_discount_id:            { type: int, default: null }
    ship_code_id:                   { type: int, default: null }
    cdate:                          { type: int, default: null }
    mdate:                          { type: int, default: null }
    product_name:                   { type: string(64), default: null }
    product_sales:                  { type: int, notnull: true, default 0 }
    product_attribute:              { name: product_attribute as attribute, type: clob(16777777) }
    custom_attribute:               { type: clob(16777777), notnull: true }
    product_tax_id:                 { type: int(2), notnull: true, default: '0' }
    product_unit:                   { type: string(32), default: null }
    product_packaging:              { type: int, default: null }
    webinar_duration:               { type: string(50), default: null }
5
задан Andreas 5 September 2011 в 00:01
поделиться