Skip to content

About

ENUM Column Type for Zend Db

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages