Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to add automatic fields.
When selecting specific fields (such as computed fields) it is often really helpful to also select all the fields in the model. Instead of having to type out all the columns in the schema, the autoFields() method can be used to tell an ORM\Query to also include the automatic fields. This new method also works in contain() builders. Refs #4360
- Loading branch information
Showing
3 changed files
with
100 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters