Is there a way to list all relationships of a model?

Posted 3 years ago by rsferreira11

For example if I have

Model Post - belongsTo an User - hasMany Posts

Can I use any method to list values? Example: array [ 'belongsTo' => ['User'], 'hasMany' => ['Posts'], ]

Please sign in or create an account to participate in this conversation.