I have this model, where i am trying to check if the notification has been seen.
$this->hasOne('id', 'NotificationsSeen', 'notificationid', array(
'alias' => 'seen',
'reusable' => true
));
But I need one more statement to complete the relationship. Is there anyway i can pass one more where statement into the relationship. Maybe like this:
$this->hasOne('id, userid', 'NotificationsSeen', 'notificationid, userid', array(
'alias' => 'seen',
'reusable' => true
));
Is there anyway to do this with relationship? Without using modelManager