Skip to content

CP-14598 before after bind#17082

Merged
niden merged 3 commits into
5.0.xfrom
CP-14598-before-after-bind
Jun 6, 2026
Merged

CP-14598 before after bind#17082
niden merged 3 commits into
5.0.xfrom
CP-14598-before-after-bind

Conversation

@niden
Copy link
Copy Markdown
Member

@niden niden commented Jun 6, 2026

Hello!

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • I have updated the relevant CHANGELOG
  • I have created a PR for the documentation about this change

Added beforeBind and afterBind hook methods to Phalcon\Forms\Form. When defined on a form subclass, beforeBind(array $data, ?object $entity) runs at the start of bind() (returning false cancels the bind) and afterBind(?object $entity) runs after the data has been assigned. Both also fire when bind() is reached through isValid().
Thanks

niden added 3 commits June 5, 2026 23:37
Assisted-by: Claude Code
Assisted-by: Claude Code
@niden niden requested a review from Jeckerson June 6, 2026 04:41
@niden niden self-assigned this Jun 6, 2026
@niden niden added new feature request Planned Feature or New Feature Request 5.0 The issues we want to solve in the 5.0 release labels Jun 6, 2026
@niden niden merged commit d5abb21 into 5.0.x Jun 6, 2026
192 checks passed
@niden niden deleted the CP-14598-before-after-bind branch June 6, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.0 The issues we want to solve in the 5.0 release new feature request Planned Feature or New Feature Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant