DataObject Inheritance

I'm migrating from ob 2.2 to 2.4. It looks like dataobject inheritance does not work in new version.

My Child DOs inherit BizFields from parent DO.The problem with SQL not creating columns for inherited object.

-Andrew

 

Solved. The trick was with

Solved. The trick was with default class for Dataobject. In 2.2 it's BizDataObj. When I changed it from BizDataObj to BizDataObj_Lite inheritance kicked in.

-Andrew  

DataObject inheritance issue

DataObject inheritance issue in BizDataObj class can be fixed by adding parent::InheritParentObj(); to the code below

   protected function ReadMetadata(&$xmlArr)
   {
      parent::ReadMetaData($xmlArr);
      parent::InheritParentObj();
      $this->m_MessageFile = isset($xmlArr["BIZDATAOBJ"]["ATTRIBUTES"]["MESSAGEFILE"]) ? $xmlArr["BIZDATAOBJ"]["ATTRIBUTES"]["MESSAGEFILE"] : null;
      $this->LoadMessageFile();
   }
 

thanks,

Andrew