Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mmerian/doctrine-timestamp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: ChessCom/doctrine-timestamp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Feb 1, 2024

  1. Update name (#1)

    * Update .gitignore
    * Update package name
    kalifg authored Feb 1, 2024
    Copy the full SHA
    0cacdfd View commit details
  2. Allow DBAL 3 (#2)

    kalifg authored Feb 1, 2024
    Copy the full SHA
    5cafd1a View commit details
Showing with 13 additions and 6 deletions.
  1. +4 −1 .gitignore
  2. +2 −2 README.md
  3. +6 −2 composer.json
  4. +1 −1 lib/DoctrineTimestamp/DBAL/Types/Timestamp.php
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Hide eclipse project data
.buildpath
.project
.settings
.settings
.idea
vendor
composer.lock
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ doctrine-timestamp

Implementation of a timestamp type for the Doctrine DBAL

This library maps the [DateTime](http://www.php.net/manual/fr/class.datetime.php)
This library maps the [DateTime](http://www.php.net/manual/en/class.datetime.php)
PHP class to a Unix timestamp (integer) in the database.

Installation
@@ -14,7 +14,7 @@ Just add this to your composer.json
```json
{
"require": {
"mmerian/doctrine-timestamp": "dev-master"
"chesscom/doctrine-timestamp": "^1"
}
}
```
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "mmerian/doctrine-timestamp",
"name": "chesscom/doctrine-timestamp",
"type": "library",
"description": "A library adding the timestamp type to Doctrine ORM",
"keywords": ["Doctrine", "ORM", "timestamp", "DateTime"],
@@ -8,10 +8,14 @@
{
"name": "Maxime Mérian",
"email": "maxime.merian@gmail.com"
},
{
"name": "Michael Dwyer",
"email": "dwyer@chess.com"
}
],
"require" : {
"doctrine/dbal": "2.*"
"doctrine/dbal": "^2 || ^3"
},
"autoload": {
"psr-0": {
2 changes: 1 addition & 1 deletion lib/DoctrineTimestamp/DBAL/Types/Timestamp.php
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
use Doctrine\DBAL\Platforms\AbstractPlatform;

/**
* Timestamp type for the Doctrine 2 ORM
* Timestamp type for the Doctrine ORM
*/
class Timestamp extends Type
{