Hi! I've written some code that doesn't appear to be functioning as I would hope. Perhaps someone can give me a quick pointer.
Currently I have:
$Account = new \Account();
This does not appear to work. If I check the database I do not find the related record after I run this. Am I missing something important with adding a Many to Many relationship to an account (or any module for that matter)? I do know this! Running it gives no errors on the screen, no errors in the logs. I know the name of the custom module is "accounts_accounts_1" as defined in studio. I know that to add relationships I would do it this way programmatically.
To be quite frank, the module is very simple and I don't see much extension of it. It's purpose is purely to link accounts to accounts. I could write a very simple SQL to make this work for me but I would prefer to figure out why this bit of code does not work for this custom relationship.