AnsweredAssumed Answered

createRelationshipMeta Error upon overriding Core Bean

Question asked by Mario Gaida on Nov 14, 2017

When I override a core bean e.g. Email with the attached source code, rebuilding the system gives me:

 

[74407][1][FATAL] createRelationshipMeta: Metadata for table emails does not exist

 

Is there any solution to this?

 

Thank you very much
kind regards
Mario

 

in custom/modules/Emails/EmailApCustom.php

 

<?php

if (!defined('sugarEntry') || !sugarEntry) {
    die('Not A Valid Entry Point');
}

require_once('modules/Emails/Email.php');

/**
* Class EmailApCustom.
*
* Custom implementation of core Email.
*/
class EmailApCustom extends Email
{
  /**
   * EmailApCustom constructor.
   */
  public function __construct()
  {
    global $beanList;
    global $beanFiles;
   
    parent::__construct();
   

  }
 

}

and in custom/Extension/application/Ext/include/emailcustom.php

 

<?php

$objectList['Emails'] = 'Email';
$beanList['Emails'] = 'EmailApCustom';
$beanFiles['EmailApCustom'] = 'custom/modules/Emails/EmailApCustom.php';

Outcomes