Let's say I have 2 model classes - User and Comment (User hasMany Comments). However since my application is modular, the User class is unaware of Comment, since it may or may not be available depending on module availability. So, I cannot define the hasMany relationship in User, however it is defined as belongsTo in Comment.
When I try to pull the related Comment records from a User instance: ```php $items = $user->getRelated('Comment'); ``` I get this error: There is no defined relations for the model "User" using alias "Comment"
If I add the hasMany definition in User, then it works.
Perhaps there is another way to pull the related records without building the actual queries every time?