Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.4] Support column alias in Eloquent chunkById #17034

Merged
merged 1 commit into from
Jan 18, 2017

Conversation

riesjart
Copy link
Contributor

Follow-up on #14711, for the same method in the Eloquent builder. Furthermore, the $column param is now optional, defaulting to the model's key.

Furthermore, the $column param is now optional, defaulting to the model's key.
@riesjart riesjart changed the title Support column alias in Eloquent chunkById [5.4] Support column alias in Eloquent chunkById Dec 28, 2016
@GrahamCampbell GrahamCampbell changed the base branch from master to 5.4 December 29, 2016 22:18
@@ -425,10 +425,15 @@ public function chunk($count, callable $callback)
* @param int $count
* @param callable $callback
* @param string $column
* @param string|null $alias
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be string|null for $column too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants