src/ActiveQuery.php
private function joinWithRelation($parent, $child)
    {
        if (!empty($child->join)) {
            foreach ($child->join as $join) {
                $this->join[] = $join;
            }
        }
    }
private function joinWithRelation($parent, $child)
    {
        if (!empty($child->join)) {
            foreach ($child->join as $join) {
                $this->join[] = $join;
            }
        }
    }
private function joinWithRelation ( $ parent , $ child ) { if ( ! empty ( $ child -> join ) ) { foreach ( $ child -> join as $ join ) { $ this -> join [ ] = $ join ; } } }
Joins a parent query with a child query.
The current query object will be modified accordingly.
@param ActiveQuery $parent
@param ActiveQuery $child
Joins a parent query with a child query . The current query object will be modified accordingly .