diff --git a/docs/typecasting.rst b/docs/typecasting.rst index fecc473cf4..21770174a7 100644 --- a/docs/typecasting.rst +++ b/docs/typecasting.rst @@ -37,16 +37,7 @@ You must remember that type-casting is a two-way operation. If you are introducing your own types, you will need to make sure they can be saved and loaded correctly. -Some formats such as `date`, `time` and `datetime` may have additional options -to it:: - - $m->addField('registered', [ - 'type' => 'date', - 'persist_format' => 'd/m/Y', - 'persist_timezone' => 'IST', - ]); - -Here is another example with booleans:: +Some types such as `boolean` may support additional options like:: $m->addField('is_married', [ 'type' => 'boolean', diff --git a/src/Model/FieldPropertiesTrait.php b/src/Model/FieldPropertiesTrait.php index 68fbe73775..db7320d15d 100644 --- a/src/Model/FieldPropertiesTrait.php +++ b/src/Model/FieldPropertiesTrait.php @@ -107,15 +107,6 @@ trait FieldPropertiesTrait */ public $required = false; - /** - * Persisting format for type = 'date', 'datetime', 'time' fields. - * - * For example, for date it can be 'Y-m-d', for datetime - 'Y-m-d H:i:s.u' etc. - * - * @var string - */ - public $persist_format; - /** * Persisting timezone for type = 'date', 'datetime', 'time' fields. *