pfilsx/postgresql-doctrine
PostgreSQL Doctrine
Description
Provides extended Doctrine and Doctrine migrations PostgreSQL support with specific features such as enums, arrays and aggregate and JSON(B) functions.
Features
- PostgreSQL enums support in DBAL, ORM and migrations
- PHP8 enum support
- Fix creating default schema in down migrations for pgsql
- JSON(B) functions (in progress)
- JSON(B) types based on object models (in progress, requires symfony/serializer)
- Trait for easy use of SELECT EXISTS(...) in your entity repositories
- Aggregate functions with filter condition support
- Array types
- Text Search support
Requirement
- PHP ^8.1
- doctrine/dbal ^3.5.1
- doctrine/migrations ^3.5.2
- symfony/serializer >=5.4.* (optional for json models)
- symfony/property-info >=5.4.* (optional for json models)
Installation
Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:
composer require pfilsx/postgresql-doctrine
Usage
Please refer Doctrine DBAL and Doctrine Migrations for instructions on how to override the default doctrine classes in your project.
Required steps:
- Register PostgreSQLDriverMiddleware.php as driver middleware
- Register OrmSchemaProvider.php as Doctrine\Migrations\Provider\SchemaProvider in Doctrine\Migrations\DependencyFactory
- Register types and functions on your needs
For Symfony integration see PostgreSQLDoctrineBundle
Documentation
License
This bundle is released under the MIT license.
Related Packages
grazulex/laravel-strongmigrations
Detect dangerous migrations before they break production. Catch unsafe operation...
3,202
1
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v1.10.0 | ^8.1 | MIT | |
| v1.9.0 | ^8.1 | MIT | |
| v1.8.1 | ^8.1 | MIT | |
| v1.8.0 | ^8.1 | MIT | |
| v1.7.3 | ^8.1 | MIT | |
| v1.7.2 | ^8.1 | MIT | |
| v1.7.1 | ^8.1 | MIT | |
| v1.7.0 | ^8.1 | MIT | |
| v1.6.1 | ^8.1 | MIT | |
| v1.6.0 | ^8.1 | MIT | |
| v1.5.0 | ^8.1 | MIT | |
| v1.4.1 | ^8.1 | MIT | |
| v1.4.0 | ^8.1 | MIT | |
| v1.3.1 | ^8.1 | MIT | |
| v1.3.0 | ^8.1 | MIT | |
| v1.2.3 | ^8.1 | MIT | |
| v1.2.2 | ^8.1 | MIT | |
| v1.2.1 | ^8.1 | MIT | |
| v1.2.0 | ^8.1 | MIT | |
| v1.1.1 | ^8.1 | MIT | |
| v1.1.0 | ^8.1 | MIT | |
| v1.0.0 | ^8.1 | MIT | |
| v0.0.1 | ^7.4 | MIT |