-
Notifications
You must be signed in to change notification settings - Fork 67
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
DOC Add validations related to DBField #603
DOC Add validations related to DBField #603
Conversation
90e438f
to
2c1c563
Compare
en/08_Changelogs/5.4.0.md
Outdated
@@ -102,6 +102,8 @@ SilverStripe\ORM\FieldType\DBPolymorphicForeignKey: | |||
- [`HTTPOutputHandler::isCli()`](api:SilverStripe\Logging\HTTPOutputHandler::isCli()) has been deprecated. Use [`Director::is_cli()`](api:SilverStripe\Control\Director::is_cli()) instead instead. | |||
- [`PasswordValidator`](api:SilverStripe\Security\PasswordValidator) has been deprecated. It will be renamed to `SilverStripe\Security\Validation\RulesPasswordValidator`. | |||
- [`ContentReviewEmails::isValidEmail()`](api:SilverStripe\ContentReview\Tasks\ContentReviewEmails::isValidEmail()) has been deprecated. Use [`Email::is_valid_address()`](api:SilverStripe\Control\Email\Email::is_valid_address()) instead. | |||
- [`DBField.defaultVal`](api:SilverStripe\ORM\FieldType\DBField->defaultVal). Use getDefaultValue() and setDefaultValue() instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [`DBField.defaultVal`](api:SilverStripe\ORM\FieldType\DBField->defaultVal). Use getDefaultValue() and setDefaultValue() instead. | |
- The [`DBField.defaultVal`](api:SilverStripe\ORM\FieldType\DBField->defaultVal) property has been deprecated. Use getDefaultValue() and setDefaultValue() instead. |
Also make getDefaultValue()
and setDefaultValue()
into links.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
en/08_Changelogs/5.4.0.md
Outdated
@@ -102,6 +102,8 @@ SilverStripe\ORM\FieldType\DBPolymorphicForeignKey: | |||
- [`HTTPOutputHandler::isCli()`](api:SilverStripe\Logging\HTTPOutputHandler::isCli()) has been deprecated. Use [`Director::is_cli()`](api:SilverStripe\Control\Director::is_cli()) instead instead. | |||
- [`PasswordValidator`](api:SilverStripe\Security\PasswordValidator) has been deprecated. It will be renamed to `SilverStripe\Security\Validation\RulesPasswordValidator`. | |||
- [`ContentReviewEmails::isValidEmail()`](api:SilverStripe\ContentReview\Tasks\ContentReviewEmails::isValidEmail()) has been deprecated. Use [`Email::is_valid_address()`](api:SilverStripe\Control\Email\Email::is_valid_address()) instead. | |||
- [`DBField.defaultVal`](api:SilverStripe\ORM\FieldType\DBField->defaultVal). Use getDefaultValue() and setDefaultValue() instead. | |||
- [`DBFile::validate()`](api:SilverStripe\Assets\Storage\DBFile::validate()) has been deprecated. Use validateFilename() instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validateFilename()
should be a link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
2c1c563
to
3076730
Compare
3076730
to
d01a317
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue silverstripe/silverstripe-framework#11403
Linting issue is existing