I am trying to getRelated rows while having join that is required by the WHERE condition. In other words I would like to fetch answers of the session on questions which have not been deleted.
Sessions have multiple questions and answers.
This is what I'd like to do. Obviously this doesn't work. Whats the best way to achieve this?
$this is Session model
$this->getRelated('MyApp\Models\Answers', array( "conditions" => "questions.deleted = 0", "join" => "questions" ) );