Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6573553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:08:55+00:00 2026-05-25T15:08:55+00:00

I get this error message when I am building the model: When using the

  • 0

I get this error message when I am building the model:

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

The problem is, that I have to use this field name, because it is in a table which is created and used by virtuemart. Alias does not work either.

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

So, what can I do? Can I turn ATTR_AUTO_ACCESSOR_OVERRIDE off or do I get problems with that. In case I can, how can I do that?

Could there be a problem with turning ATTR_AUTO_ACCESSOR_OVERRIDE off? And if there is one (or more), what will it be?

I am thankful for any advice!


Additional Information:

Definition in 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 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:08:55+00:00Added an answer on May 25, 2026 at 3:08 pm

    I’ve found better solution, put this in ProjectConfiguration class:

    public function configureDoctrine()
            {
            $isCli = (php_sapi_name() == "cli");
            if(true == $isCli)
                {
                Doctrine_Manager::getInstance()->setAttribute(Doctrine::ATTR_AUTO_ACCESSOR_OVERRIDE, false);
                }
            }
    

    Works automatically detecting CLI context and switching proper ATTR off.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this error message when installing SQL 2005 Analysis services. The cabinet File
I get this error message in Eclipse: Access restriction: The type DirectoryWalker is not
Yesterday I testet a lot on my device. Suddenly I get this error message
When loading up a solution in VS2008 I get this message: An error was
I get this message when compiling C++ on gcc 4.3 error: ‘NULL’ was not
When retrieving packages with Cabal, I frequently get errors with this message: user error
I get this error: Can't locate Foo.pm in @INC Is there an easier way
I get this error on an update panel within a popupControlExtender which is within
I get this error when I do an svn update : Working copy XXXXXXXX
I get this error:- You have an error in your SQL syntax; check the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.