Skip to content

T16426 varchar 255 empty#16913

Merged
niden merged 14 commits intophalcon:7.0.xfrom
niden-code:T16426-varchar-255-empty
Apr 23, 2026
Merged

T16426 varchar 255 empty#16913
niden merged 14 commits intophalcon:7.0.xfrom
niden-code:T16426-varchar-255-empty

Conversation

@niden
Copy link
Copy Markdown
Member

@niden niden commented Apr 23, 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

Fixed Phalcon\Mvc\Model NOT NULL validation to accept empty strings "" for string columns (VARCHAR, CHAR, TEXT); previously "" was incorrectly treated as null and triggered a PresenceOf validation error. Applications relying on this implicit rejection of empty strings must add an explicit PresenceOf or StringLength(min=1) validator

Thanks

@niden niden self-assigned this Apr 23, 2026
@niden niden added breaks bc Functionality that breaks Backwards Compatibility bug A bug report status: medium Medium 7.0 labels Apr 23, 2026
@niden niden merged commit 58758cc into phalcon:7.0.x Apr 23, 2026
23 of 24 checks passed
@niden niden deleted the T16426-varchar-255-empty branch April 23, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.0 breaks bc Functionality that breaks Backwards Compatibility bug A bug report status: medium Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant