Hi all,
I need a function that return me Associations and types from my model. Like as …
$associations = $this->myModel->getAssociations();
//ouput
[
'belongsTo' => ['model1','model2'],
'hasMany' => ['model1','model2,'model3']
]
i have only name of my associations with a code:
$associations = $this->myModel->associations()->keys();
but i have not types.