Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date type working? #7

Open
fnagel opened this issue Apr 23, 2013 · 1 comment
Open

Date type working? #7

fnagel opened this issue Apr 23, 2013 · 1 comment

Comments

@fnagel
Copy link

fnagel commented Apr 23, 2013

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

@cirovargas
Copy link

Unknown database type date requested, Realestate\MssqlBundle\Platforms\DblibPlatform may not support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants