How do I get the ManyToMany metadata from the current model?
In my User-model I have the following:
public function initialize() {
$this->hasManyToMany("id", "Model\UserHasGroup", "user_id", "account_id", "Model\Group", "id", array('alias' => 'groups'));
I want the get these params in another function in my User-model:
function testFunction($related_alias) {
// How do I extract the params from hasManyToMany function above?
}
print_r(testFunction('groups'));