Skip to content

Leafpub/Zend-Db-Column-Enum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Zend-Db-Column-Enum

ENUM Column Type for Zend Db

Usage

new Enum(
  'role', // field name
  ["'owner'","'admin'","'editor'","'author'"], // possible field values
  false, // isNullable
  'author' // deafult
)

$createTable = new \Zend\Db\Sql\Ddl\CreateTable('foo');
$createTable->addColumn(
  new Enum(
    'foo',
    ["'bar'", "'baz'"]
  )
);

About

ENUM Column Type for Zend Db

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages