creof/doctrine2-custom-types

Doctrine2 custom data types

0.0.1 2013-11-06 23:40 UTC

This package is auto-updated.

Last update: 2024-11-08 04:44:37 UTC


README

Custom data types for Doctrine2.

ApproxDate

A pseudo-date object to store incomplete date values.

Accepts dates in the following formats: (lowercase does not require padding with 0)

  • YY
  • YYYY
  • mm/YY, mm-YY, mm.YY
  • mm/YYYY, mm-YYYY, mm.YYYY
  • mm/dd/YYYY, mm-dd-YYYY, mm.dd.YYYY
  • YYYYMMDD
  • YYYY-MM
  • YYYY-MM-DD

Gender

A person's gender.