brick / date-time-doctrine Goto Github PK
View Code? Open in Web Editor NEWDoctrine type mappings for brick/date-time
License: MIT License
Doctrine type mappings for brick/date-time
License: MIT License
Hey @BenMorel thank you for this package. I always use this library for my entities, and I always made the types myself. I'm going to switch to this one, so thank you a lot for making it available.
I just have one question. Why not a ZonedDateTimeType
? I understand this could be due to some databases not supporting timezones in their datetime types, but we could always convert it to utc prior to storage, right?
Please correct me if I'm wrong.
Is there any reason why this package wouldn't work OOTB with ORM 3.0 and DBAL 4.0, as it seems to support ORM 2.19? Can we just "or" the versions in composer.json
?
Hi @BenMorel,
thanks a lot for your work and this library.
During my last development I noticed that the names you used for Doctrine types is different from the Doctrine DBAL standard naming.
In the Doctrine official library the types are named this way:
[...]
public const DATE_IMMUTABLE = 'date_immutable';
public const DATEINTERVAL = 'dateinterval';
public const DATETIME_MUTABLE = 'datetime';
public const DATETIME_IMMUTABLE = 'datetime_immutable';
public const DATETIMETZ_MUTABLE = 'datetimetz';
public const DATETIMETZ_IMMUTABLE = 'datetimetz_immutable';
[...]
while in your library you use the camelCase notation:
[...]
final class LocalDateTimeType extends Type
{
public function getName(): string
{
return 'LocalDateTime';
}
[...]
Can I ask you why? Would you consider to change this if I open a pull request for this change?
Hope to hear from you soon
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.