rp@devbox:trunk$ php symfony --trace doctrine:build-all-reload --no-confirmation
>> doctrine dropping databases
>> doctrine Successfully dropped database f...octrine" named "secret_project"
>> doctrine creating databases
>> doctrine Successfully created database f...octrine" named "secret_project"
>> doctrine generating model classes
Unable to parse string: Unable to parse line 0 (
Then look no further, this was the oddest error message which caused errors inconsistently when generating models or updating the schema files. It turned out that the error was due to
- vim swap files
- osx ._ files
The parser would pick up all the files even if it started with a . (dot) which then borks of-course coz it wasn’t in the format it would expect it to be in
What would have been useful would be to have more meaningful error message like full path+file name and also the parser shouldnt pickup . (dot) files in the first place, dont see why a developer would want to keep his config files starting with a . (dot) unless its a .htaccess file.