getJoins() public method

public getJoins ( ) : array
return array
Esempio n. 1
0
 /**
  * @return array
  */
 public function getAllOrderBy()
 {
     $order = $this->orderBy;
     foreach ($this->joinQuery->getJoins() as $join) {
         $order = array_merge($order, $join->getAllOrderBy());
     }
     return $order;
 }
Esempio n. 2
0
 /**
  * @return array
  */
 public function getAllColumns()
 {
     $columns = $this->getColumns();
     foreach ($this->joinQuery->getJoins() as $join) {
         $joinCols = $join->getAllColumns();
         $columns = \array_merge($columns, $joinCols);
     }
     return $columns;
 }
Esempio n. 3
0
 /**
  * @param null|Where $data
  * @param string     $operation
  *
  * @return array
  */
 protected function getAllOperation($data, $operation)
 {
     $collection = [];
     if (!is_null($data)) {
         $collection[] = $data;
     }
     foreach ($this->joinQuery->getJoins() as $join) {
         $collection = \array_merge($collection, $join->{$operation}());
     }
     return $collection;
 }