Enum transformer

Fetches allowed values directly from the Propel Schema to enum.

Example usage:

<enum
     tableMapClass="\Orm\Zed\Customer\Persistence\Map\SpyCustomerTableMap"
     tableMapColumn="gender"
     from="gender"
     to="gender"
     nullable="true"
/>

Attributes:

  • tableMapClass - defines Propel Schema Class

  • tableMapColumn - defines the Column to be mapped

  • from - defines which Field will be used as resource

  • to - defines on which Field the resource has to match

  • nullable (optional) - defines if NullEntries should be returned for empty values or not (default: false)