2017 © Pedro Peláez
 

symfony-bundle doctrine-custom-types-bundle

Add custom types like MySQL's enum

image

ekapusta/doctrine-custom-types-bundle

Add custom types like MySQL's enum

  • Wednesday, September 21, 2016
  • by garex
  • Repository
  • 2 Watchers
  • 0 Stars
  • 3,779 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 8 % Grown

The README.md

Doctrine custom types bundle

Build Status, (*1)

Add custom types like MySQL's enum., (*2)

To add new type

  1. Add it to Ekapusta\DoctrineCustomTypesBundle\DBAL\Types
  2. Register it at Ekapusta\DoctrineCustomTypesBundle\DBAL\TypeRegistry

MySQL ENUM type

To use it in annotations, pass values through options:, (*3)

/**
 * @var string
 *
 * @ORM\Column(name="sex", type="enum", options={
 *     "values": {"yes", "no", "maybe"},
 *     "default": "yes"
 * })
 */
private $sex;

PostgreSQL CUBE type

Supports both points and point's sets. Also all cube's functions added. See https://www.postgresql.org/docs/current/static/cube.html, (*4)

/**
 * @var Value\Point
 *
 * @ORM\Column(name="n_space_point", type="cube", options={
 *     "default": "(1, 2, 3)"
 * })
 */
private $nSpacePoint;

/**
 * @var Value\PointSet
 *
 * @ORM\Column(name="n_space_cube", type="cube", options={
 *     "default": "(1, 2), (3, 4)"
 * })
 */
private $nSpaceCube;

The Versions

21/09 2016

dev-master

9999999-dev

Add custom types like MySQL's enum

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Ustimenko

21/09 2016

dev-develop

dev-develop

Add custom types like MySQL's enum

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Ustimenko

21/09 2016

1.2.1

1.2.1.0

Add custom types like MySQL's enum

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Ustimenko

06/09 2016

1.2

1.2.0.0

Add custom types like MySQL's enum

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Ustimenko

30/08 2016

1.1

1.1.0.0

Add custom types like MySQL's enum

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Ustimenko

19/08 2016

1.0

1.0.0.0

Add custom types like MySQL's enum

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Ustimenko