@@ -33,19 +33,19 @@ |
||
| 33 | 33 | { |
| 34 | 34 | if ($this->map->currentModel->row instanceof Sql\DataObjects\Result\Row) { |
| 35 | 35 | $criteria = $this->map->currentModel->row->offsetGet($this->map->currentPrimaryKey); |
| 36 | - $field = $this->map->currentTable . '.' . $this->map->currentPrimaryKey; |
|
| 36 | + $field = $this->map->currentTable.'.'.$this->map->currentPrimaryKey; |
|
| 37 | 37 | |
| 38 | 38 | $this->map->referenceModel->qb |
| 39 | 39 | ->select([ |
| 40 | - $this->map->referenceTable . '.*', |
|
| 40 | + $this->map->referenceTable.'.*', |
|
| 41 | 41 | ]) |
| 42 | 42 | ->join($this->map->currentTable, implode(' = ', [ |
| 43 | - $this->map->currentTable . '.' . $this->map->currentPrimaryKey, |
|
| 44 | - $this->map->intermediaryTable . '.' . $this->map->intermediaryCurrentForeignKey, |
|
| 43 | + $this->map->currentTable.'.'.$this->map->currentPrimaryKey, |
|
| 44 | + $this->map->intermediaryTable.'.'.$this->map->intermediaryCurrentForeignKey, |
|
| 45 | 45 | ])) |
| 46 | 46 | ->join($this->map->referenceTable, implode(' = ', [ |
| 47 | - $this->map->referenceTable . '.' . $this->map->referencePrimaryKey, |
|
| 48 | - $this->map->intermediaryTable . '.' . $this->map->intermediaryReferenceForeignKey, |
|
| 47 | + $this->map->referenceTable.'.'.$this->map->referencePrimaryKey, |
|
| 48 | + $this->map->intermediaryTable.'.'.$this->map->intermediaryReferenceForeignKey, |
|
| 49 | 49 | ])); |
| 50 | 50 | |
| 51 | 51 | if ($result = $this->map->intermediaryModel->find($criteria, $field)) { |
@@ -33,19 +33,19 @@ |
||
| 33 | 33 | { |
| 34 | 34 | if ($this->map->currentModel->row instanceof Sql\DataObjects\Result\Row) { |
| 35 | 35 | $criteria = $this->map->currentModel->row->offsetGet($this->map->currentPrimaryKey); |
| 36 | - $field = $this->map->intermediaryTable . '.' . $this->map->intermediaryPrimaryKey; |
|
| 36 | + $field = $this->map->intermediaryTable.'.'.$this->map->intermediaryPrimaryKey; |
|
| 37 | 37 | |
| 38 | 38 | $this->map->referenceModel->qb |
| 39 | 39 | ->select([ |
| 40 | - $this->map->referenceTable . '.*', |
|
| 40 | + $this->map->referenceTable.'.*', |
|
| 41 | 41 | ]) |
| 42 | 42 | ->join($this->map->currentTable, implode(' = ', [ |
| 43 | - $this->map->currentTable . '.' . $this->map->intermediaryCurrentForeignKey, |
|
| 44 | - $this->map->intermediaryTable . '.' . $this->map->intermediaryPrimaryKey, |
|
| 43 | + $this->map->currentTable.'.'.$this->map->intermediaryCurrentForeignKey, |
|
| 44 | + $this->map->intermediaryTable.'.'.$this->map->intermediaryPrimaryKey, |
|
| 45 | 45 | ])) |
| 46 | 46 | ->join($this->map->referenceTable, implode(' = ', [ |
| 47 | - $this->map->referenceTable . '.' . $this->map->referencePrimaryKey, |
|
| 48 | - $this->map->intermediaryTable . '.' . $this->map->intermediaryReferenceForeignKey, |
|
| 47 | + $this->map->referenceTable.'.'.$this->map->referencePrimaryKey, |
|
| 48 | + $this->map->intermediaryTable.'.'.$this->map->intermediaryReferenceForeignKey, |
|
| 49 | 49 | ])); |
| 50 | 50 | |
| 51 | 51 | if ($result = $this->map->intermediaryModel->find($criteria, $field, 1)) { |
@@ -33,19 +33,19 @@ |
||
| 33 | 33 | { |
| 34 | 34 | if ($this->map->currentModel->row instanceof Sql\DataObjects\Result\Row) { |
| 35 | 35 | $criteria = $this->map->currentModel->row->offsetGet($this->map->currentPrimaryKey); |
| 36 | - $field = $this->map->currentTable . '.' . $this->map->currentPrimaryKey; |
|
| 36 | + $field = $this->map->currentTable.'.'.$this->map->currentPrimaryKey; |
|
| 37 | 37 | |
| 38 | 38 | $this->map->referenceModel->qb |
| 39 | 39 | ->select([ |
| 40 | - $this->map->referenceTable . '.*', |
|
| 40 | + $this->map->referenceTable.'.*', |
|
| 41 | 41 | ]) |
| 42 | 42 | ->join($this->map->currentTable, implode(' = ', [ |
| 43 | - $this->map->currentTable . '.' . $this->map->currentPrimaryKey, |
|
| 44 | - $this->map->intermediaryTable . '.' . $this->map->intermediaryCurrentForeignKey, |
|
| 43 | + $this->map->currentTable.'.'.$this->map->currentPrimaryKey, |
|
| 44 | + $this->map->intermediaryTable.'.'.$this->map->intermediaryCurrentForeignKey, |
|
| 45 | 45 | ])) |
| 46 | 46 | ->join($this->map->referenceTable, implode(' = ', [ |
| 47 | - $this->map->referenceTable . '.' . $this->map->referencePrimaryKey, |
|
| 48 | - $this->map->intermediaryTable . '.' . $this->map->intermediaryReferenceForeignKey, |
|
| 47 | + $this->map->referenceTable.'.'.$this->map->referencePrimaryKey, |
|
| 48 | + $this->map->intermediaryTable.'.'.$this->map->intermediaryReferenceForeignKey, |
|
| 49 | 49 | ])); |
| 50 | 50 | |
| 51 | 51 | if ($result = $this->map->intermediaryModel->find($criteria, $field, 1)) { |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | if (empty($this->currentForeignKey)) { |
| 131 | - $this->currentForeignKey = $this->referencePrimaryKey . '_' . str_replace([ |
|
| 131 | + $this->currentForeignKey = $this->referencePrimaryKey.'_'.str_replace([ |
|
| 132 | 132 | 't_', |
| 133 | 133 | 'tm_', |
| 134 | 134 | 'tr_', |