Skip to content

Commit

Permalink
Merge pull request #295 from peter-gribanov/jeft_join
Browse files Browse the repository at this point in the history
Define JOIN before using the new alias from it
  • Loading branch information
peter-gribanov authored Feb 18, 2021
2 parents 0a31646 + 3f6bc84 commit e3c67ae
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,26 @@
Spec::SUM('field_name');
```

* Define `Spec::leftJoin()`, `Spec::innerJoin()` and `Spec::join()` before using the new alias from it.

Before:

```php
$spec = Spec::andX(
Spec::select(Spec::selectEntity('person')),
Spec::leftJoin('person', 'person')
);
```

After:

```php
$spec = Spec::andX(
Spec::leftJoin('person', 'person'),
Spec::select(Spec::selectEntity('person'))
);
```

# Upgrade from 1.0 to 1.1

* No BC breaks
Expand Down

0 comments on commit e3c67ae

Please sign in to comment.