ekapusta/doctrine-custom-types-bundle
最新稳定版本:1.4.3
Composer 安装命令:
composer require ekapusta/doctrine-custom-types-bundle
包简介
Add custom types like MySQL's enum
README 文档
README
Add custom types like MySQL's enum.
To add new type
- Add it to
Ekapusta\DoctrineCustomTypesBundle\DBAL\Types - Register it at
Ekapusta\DoctrineCustomTypesBundle\DBAL\TypeRegistry
MySQL ENUM type
To use it in annotations, pass values through options:
/** * @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
/** * @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; 统计信息
- 总下载量: 71.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04