Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.2.0-BETA1
-
Component/s: None
-
Labels:None
-
Environment:Fedora 10, symfony 1.2, postgresql 8.4.1. I have been unable to find any information as to which version of Doctrine I have: it came with symfony 1.2
Description
Doctrine accepts 'char' in the (yml) schema, and creates the database and model.
Then an attempt to save a record raises a Doctrine_Validator_Exception, which turns out to contain no validation message, but just the cryptic
[_errors:protected] => Array
(
[nickname] => Array
(
[0] => type
)
)
[_validators:protected] => Array
(
)
Only by looking at the source did I discover that what this means is that the validator does not accept the column type 'char' - because it's not hard-coded in Doctrine_Validator::isValidType.
I've vacillated over whether to classify this as 'Major' or Minor': once I've realised what's going on, it's easy to work round; but it is a show-stopper for a Doctrine novice.
This is already fixed in the Doctrine 1.2 branch which comes with symfony 1.3