This approach will work with a partnership or a trust.

Note that the difference is that the partner loan balances are handled via the equity section rather than through the liability section as you see in a trust.