I have created a custom module using the module builder and I am trying to create a record for that module in a logic hooks.
For stock module for example an account I can create a record of it by doing the following:
$account = new Account();
$account->name = "test";
I couldn't figure out how to do the same thing for my custom module.
my module name is zen_transaction, the plurale label is zen_transactions.
under the modules/acb123_zen_transaction I do see abc123_zen_transaction.php and abc123_zen_transaction_sugar.php.
I tried to use the class name in both of the php files which is:
whenever I tried to do $transaction = new abc123_zen_transaction_sugar() I got an error in the console that says:
<b>Fatal error</b>: Class 'abc123_zen_transaction_sugar' not found in <b> /var/www/sugar/modules/Opportunities/Opp_custom_hook_class.php </b> on line<b>27</b>.
how to find out the name of the class that I should use to create a record for my custom module?