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


in custom/modules/Emails/EmailApCustom.php



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


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



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



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