Tôi nhận được thông báo này báo lỗi khi tôi đang xây dựng mô hình:ATTR_AUTO_ACCESSOR_OVERRIDE
When using the attribute ATTR_AUTO_ACCESSOR_OVERRIDE you cannot use the field name "attribute" ...
Vấn đề là, rằng tôi phải sử dụng tên lĩnh vực này, bởi vì nó là trong một bảng được tạo ra và được sử dụng bởi VirtueMart. Bí danh cũng không hoạt động.
product_attribute: { name: product_attribute as attribute, type: clob(16777777) }
Vì vậy, tôi có thể làm gì? Tôi có thể tắt số ATTR_AUTO_ACCESSOR_OVERRIDE
hoặc tôi có gặp vấn đề với điều đó không. Trong trường hợp tôi có thể, làm thế nào tôi có thể làm điều đó?
Có thể có vấn đề với việc tắt ATTR_AUTO_ACCESSOR_OVERRIDE
không? Và nếu có một (hoặc nhiều hơn), nó sẽ là gì?
Tôi biết ơn vì lời khuyên nào!
Thông tin bổ sung:
Định nghĩa trong 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 }
Phiên bản giáo lý bạn đang sử dụng, 1,2 hoặc 2,0? Ngoài ra, định nghĩa thực thể có thể hữu ích. – J0HN
Tôi đang sử dụng học thuyết 1.2. – Andreas