Has hierarchial accounts ever been supported?
The
accounts
table has a column
account_parent
that according to
the docs is to support a hierarchy of accounts.
The only places this column is references is in the
create_account_from_register()
function, where it is populated by the variable
$parent
(which is undefined,) converted to an integer (which translates to zero and a couple of warnings.) Since it's not defined (and thus
falsey,) we'll also do an extra roundtrip to the db to update the record to set
account_parent
to the same as
account_id
.
The only other mentions in the code is in the
Zotlabs\Entity\Account
class that define a getter and setter for the attribute mirroring the column, the linked docs and of course the db schemas.
I assume Betteridge's law of headlines also apply to this post, and suggest removing the column and any references to it. Anyone opposed?