marktopper/doctrine-dbal-timestamp-type
Add the timestamp type for Doctrine/DBAL
860,641
49
| Install | |
|---|---|
composer require marktopper/doctrine-dbal-timestamp-type |
|
| Latest Version: | v1.1.0 |
| PHP: | >=5.6.4 |
| License: | MIT |
| Last Updated: | Mar 6, 2024 |
| Links: | GitHub · Packagist |
Maintainer: marktopper
Doctrine/DBAL Timestamp Type
Since Doctrine/DBAL does not support the MySQL Timestamp type, you might want to add it on your own using this package.
Why using this?
According to this issue, Doctrine/DBAL does not support MySQL-specific database types like this one. Therefor we must add it ourself.
Installation
composer require marktopper/doctrine-dbal-timestamp-type
Then add the type to Doctrine\DBAL:
\Doctrine\DBAL\Types\Type::addType('timestamp', 'MarkTopper\DoctrineDBALTimestampType\TimestampType');
Laravel 5
You can use the Laravel Provider to ensure that the type is added to Doctrine\DBAL by adding the following to providers:
MarkTopper\DoctrineDBALTimestampType\Laravel5ServiceProvider::class,
Related Packages
andritiana/mysql8-doctrine2-spatial
Doctrine2 multi-platform support for spatial types and functions
45,084
0
tommyknocker/pdo-database-class
Framework-agnostic PHP database library with unified API for MySQL, MariaDB, Pos...
6,323
82
activerecord
ai-analysis
ai-database-assistant
ai-powered
anthropic
batch-processing
bulk-operations
cli-tools
common-table-expressions
connection-pooling
connection-retry
cross-apply
cross-platform
csv-loader
cte
cursor-pagination
database
database-abstraction-layer
database-optimization-ai
dbal
ddl
deepseek
delete-join
dialect-specific-types
distinct-on
dump
error-diagnostics
event-dispatcher
except
exception-hierarchy
explain-analysis
export-helpers
filter-clause
fluent-api
framework-agnostic
full-text-search
google-ai
helper-functions
insert-select
intersect
json-loader
lateral-join
lightweight
load-balancing
mariadb
merge-statements
microsoft-ai
migrations
mssql
mysql
ollama
openai
oracle
orm
outer-apply
pagination
pdo
pdo-db
pdo-oci
pdodb
performance
php8
plugin-system
postgresql
prepared-statements
psr-14
psr-16
query-builder
query-caching
query-compilation-cache
query-debugging
query-macros
query-monitoring
query-optimization-ai
query-profiling
query-scopes
read-write-splitting
recursive-cte
regexp
relationships
restore
savepoints
schema-builder
schema-inspector
schema-introspection
security
seeds
set-operations
sharding
sql-builder
sql-formatter
sql-injection
sql-server
sqlite
table-locking
transactions
type-safe
union
update-join
upsert
user-management
validation
window-functions
xml-loader
yandex-ai
yii2-inspired
zero-dependencies
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
637,827,751
9,703
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v1.1.0 | >=5.6.4 | MIT | |
| v1.0.3 | >=5.6.4 | MIT | |
| v1.0.2 | >=5.6.4 | MIT | |
| v1.0.1 | >=5.6.4 | MIT | |
| v1.0.0 | >=5.6.4 | MIT |