Draft implementation of ActiveQuery::joinWith().