Skip to content

Date type working? #7

@fnagel

Description

@fnagel

Hey,

thanks for providing this DB driver for MSSQL.

I'm currently running into issues when using MSSQL field type "date" (values in DB like "1990-03-01"). Symfony error is:

app.CRITICAL: PHP Exception Doctrine\DBAL\Types\ConversionException: "Could not convert database value "2000-07-01" to Doctrine Type date. Expected format: Y-m-d H:i:s.000" at /[...]/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/ConversionException.php line 60 [] []

DateTime works nice and without problems. I noticed the MssqlBundle\Types\DateTimeType.php and MssqlBundle\Types\DateType.php files look different. Is the DateType supposed to work? Any idea why it does not in my setup?

Thanks in advance for any hint and help!

Yours
Felix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions