Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-582

MysqlPlatform may manage microtime

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Activity

      Hide
      Marco Pivetta added a comment -

      Andrew Hoffmann can you provide additional details on this one?

      Show
      Marco Pivetta added a comment - Andrew Hoffmann can you provide additional details on this one?
      Hide
      Andrew Hoffmann added a comment -

      Of course, We want to store microtime about logs, and also We use symfony with doctrine.
      So, it will be very good, that doctrine can manage it, for example in annotation:

      @ORM\Column(type="datetime", precision/fraction=6, nullable=false)

      And in the schema:(create|update) command can generate field_name....DATETIME(6) NOT NULL

      Show
      Andrew Hoffmann added a comment - Of course, We want to store microtime about logs, and also We use symfony with doctrine. So, it will be very good, that doctrine can manage it, for example in annotation: @ORM\Column(type="datetime", precision/fraction=6, nullable=false) And in the schema:(create|update) command can generate field_name....DATETIME(6) NOT NULL
      Hide
      Marco Pivetta added a comment -

      Andrew Hoffmann that doesn't work very well with PHP's `DateTime` though...

      Show
      Marco Pivetta added a comment - Andrew Hoffmann that doesn't work very well with PHP's `DateTime` though...
      Hide
      Andrew Hoffmann added a comment -

      What do you mean?

      Show
      Andrew Hoffmann added a comment - What do you mean?
      Hide
      Marco Pivetta added a comment -

      PHP's `DateTime` doesn't handle sub-second intervals, so the DateTime type cannot handle it correctly

      Show
      Marco Pivetta added a comment - PHP's `DateTime` doesn't handle sub-second intervals, so the DateTime type cannot handle it correctly
      Hide
      Andrew Hoffmann added a comment -

      You are right, i am sorry.

      Show
      Andrew Hoffmann added a comment - You are right, i am sorry.

        People

        • Assignee:
          Benjamin Eberlei
          Reporter:
          Andrew Hoffmann
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: