-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
DBAL-178: Unknown column type requested #1340
Comments
Comment created by dswindle: Ironically, this same issue has recently started happening for me as well. It just started randomly over the weekend. Same exact issue (with 2 spaces between type and requested). For me, it happens when using Doctrine\ORM\EntityManager->find() on a valid entity. #0 /doctrine-2.1.2/Doctrine/DBAL/DBALException.php(81): Doctrine\DBAL\DBALException::unknownColumnType() |
Comment created by gediminasm: hi, seems like doctrine does not clean cache fully. in my case I'm using APC cache it should work fine now PS.:
|
Comment created by fmaz008: Hi, @Gediminas : I don't have the error anymore so I can't test, but it's nice if there's a solution to fix it. However, this error is problematic as it's anti-verbose. http://www.useit.com/alertbox/20010624.html I don't want to troll or anything, but as I'Ve started using doctrine2 with symfony2, the MAJOR problem I've encountered what bad error message that was leaving me lost. Often I had -v, find the file where the error occurred, look at the code, understand by myself what's wrong and attempt to fix it. This is counter-productive and really show that the exception message doesn't follow most error message guide line. For sure, we're not end-users, but we're "programmer-user" that use the system, and this "title" come with a knowledge that is not the same as we could expect of a core-developer, for example. I hope this message was constructive. |
Comment created by @beberlei: Improved this error message alot and also changed some regarding reverse engineering of custom types (where this error often occured): You can now implement Type#getMappedDatabaseTypes(AbstractPlatform $platform); on your custom type and return a list of database types that this doctrine type maps to. |
Issue was closed with resolution "Fixed" |
Comment created by almogbaku: this bug is still happening to me.. but its works as excepted within I using doctrine with symfony |
Issue still persists on Symfony3 with Doctrine 2.5.
|
same here. Im very new to this silex setup that uses this code |
Please report it again with a test case: we can't really help otherwise. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Jira issue originally created by user fmaz008:
When I run doctrine:schema:create, doctrine throw the following exception:
[Doctrine\DBAL\DBALException]
Unknown column type requested.
( Note: their is 2 spaces between type and requested )
The problem with this error message is how much it's unspecific. Event with -v, I still have no clue about that type is wrong, and what file is concerned.
So basically, I have to manually look at all my mapping files, one by one.
Also note that doctrine:mapping:info return all OK.
The text was updated successfully, but these errors were encountered: