Esempio n. 1
0
 public function joinWithPredicates($table, ...$predicates)
 {
     if (empty($predicates)) {
         throw new \RuntimeException('No predicates specified for join');
     }
     $join = new JoinClause();
     $join->setTableName($table);
     $join->setPredicates(WhereClause::buildPredicates($predicates, $table));
     $this->addClause($join);
     return $this;
 }