mongodb\validators\MongoIdValidator $forceFormat

$forceFormat public property

Specifies the format, which validated attribute value should be converted to in case validation was successful. valid values are:

  • 'string' - enforce value converted to plain string.
  • 'object' - enforce value converted to \MongoId instance. If not set - no conversion will be performed, leaving attribute value intact.
public string|null $forceFormat = null
doc_Yii
2016-10-30 17:09:30
Comments
Leave a Comment

Please login to continue.